You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/data-ingestion/clickpipes/postgres/faq.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,7 +183,11 @@ You have two options when dealing with tables without primary keys:
183
183
If you're creating a publication manually instead of letting ClickPipes manage it, we don't recommend creating a publication `FOR ALL TABLES`, this leads to more traffic from Postgres to ClickPipes (to sending changes for other tables not in the pipe) and reduces overall efficiency.
184
184
185
185
For manually created publications, please add any tables you want to the publication before adding them to the pipe.
186
-
:::
186
+
:::
187
+
188
+
:::warning
189
+
If you're replicating from a Postgres read replica/hot standby, you will need to create your own publication on the primary instance, which will automatically propagate to the standby. The ClickPipe will not be able to manage the publication in this case as you're unable to create publications on a standby.
@@ -272,9 +276,13 @@ WITH (publish_via_partition_root = true);
272
276
This error typically occurs when the source Postgres database has a datatype which cannot be mapped during ingestion.
273
277
For more specific issue, refer to the possibilities below.
274
278
275
-
### `Cannot parse type Decimal(XX, YY), expected non-empty binary data with size equal to or less than ...` {#cannot-parse-type-decimal-expected-non-empty-binary-data-with-size-equal-to-or-less-than}
279
+
## `Cannot parse type Decimal(XX, YY), expected non-empty binary data with size equal to or less than ...` {#cannot-parse-type-decimal-expected-non-empty-binary-data-with-size-equal-to-or-less-than}
276
280
277
281
Postgres `NUMERIC`s have really high precision (up to 131072 digits before the decimalpoint; up to 16383 digits after the decimalpoint) and ClickHouse Decimal type allows maximum of (76 digits, 39 scale).
278
282
The system assumes that _usually_ the size would not get that high and does an optimistic cast for the same as source table can have large number of rows or the row can come in during the CDC phase.
279
283
280
284
The current workaround would be to map the NUMERIC type to string on ClickHouse. To enable this please raise a ticket with the support team and this will be enabled for your ClickPipes.
285
+
286
+
## I'm seeing errors like `invalid memory alloc request size <XXX>` during replication/slot creation {#postgres-invalid-memalloc-bug}
287
+
288
+
There was a bug introduced in Postgres patch versions 17.5/16.9/15.13/14.18/13.21 due to which certain workloads can cause an exponential increase in memory usage, leading to a memory allocation request >1GB which Postgres considers invalid. This bug [has been fixed](https://github.com/postgres/postgres/commit/d87d07b7ad3b782cb74566cd771ecdb2823adf6a) and will be in the next Postgres patch series (17.6...). Please check with your Postgres provider when this patch version will be available for upgrade. If an upgrade isn't immediately possible, a resync of the pipe will be needed as it hits the error.
Copy file name to clipboardExpand all lines: docs/integrations/data-ingestion/clickpipes/postgres/source/timescale.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,11 +83,13 @@ Make sure to replace `clickpipes_user` and `clickpipes_password` with your desir
83
83
84
84
```sql
85
85
-- When adding new tables to the ClickPipe, you'll need to add them to the publication as well manually.
86
-
CREATE PUBLICATION clickpipes_publication FOR TABLE <...>, TABLES IN SCHEMA _timescaledb_internal;
86
+
CREATE PUBLICATION clickpipes_publication FOR TABLE <...>, <...>, TABLES IN SCHEMA _timescaledb_internal;
87
87
```
88
88
89
89
:::tip
90
90
We don't recommend creating a publication `FOR ALL TABLES`, this leads to more traffic from Postgres to ClickPipes (to sending changes for other tables not in the pipe) and reduces overall efficiency.
91
+
92
+
For manually created publications, please add any tables you want to the publication before adding them to the pipe.
0 commit comments