Datastream unterstützt die Replikation partitionierter Tabellen für PostgreSQL-Quelldatenbanken. Sie können die Tabellen als einzelne Stammtabelle oder als separate partitionierte Tabellen replizieren. Wenn Sie sowohl die Stammtabelle als auch die partitionierten Tabellen replizieren möchten, müssen Sie zwei verschiedene Streams mit zwei verschiedenen Publikationen erstellen.
Als einzelne Stammtabelle replizieren
So replizieren Sie partitionierte Tabellen mit dem Schema der Stammtabelle:
Verwenden Sie eine Publikation, bei der der Parameter publish_via_partition_root auf true festgelegt ist, oder erstellen Sie eine neue:
So replizieren Sie partitionierte Tabellen als separate Tabellen:
Verwenden Sie eine Publikation, für die der Parameter publish_via_partition_root auf false festgelegt ist, oder erstellen Sie eine neue. false ist die Standardeinstellung für den Parameter.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-14 (UTC)."],[[["Datastream enables the replication of partitioned tables from PostgreSQL databases, offering the flexibility to replicate them as a unified root table or as individual, separate tables."],["To replicate partitioned tables as a single root table, use a publication with the `publish_via_partition_root` parameter set to `true`, and in stream creation select only the root table, excluding the partitioned tables."],["To replicate partitioned tables as separate tables, utilize a publication with the `publish_via_partition_root` parameter set to `false`, and during stream creation, choose only the partitioned tables, excluding the root table."],["Changing the `publish_via_partition_root` parameter in an existing stream is not allowed, causing permanent stream failure."]]],[]]