Skip to content

Commit 85a13ad

Browse files
Merge pull request #4433 from ClickHouse/db-pipes/rls
DB Pipes: Mention RLS
2 parents c42fb34 + 0a797ed commit 85a13ad

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/integrations/data-ingestion/clickpipes/postgres/faq.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,9 @@ Note that TRUNCATE operations are ignored by ClickPipes and will not be replicat
339339
### Why can I not replicate my table which has a dot in it? {#replicate-table-dot}
340340
PeerDB has a limitation currently where dots in source table identifiers - aka either schema name or table name - is not supported for replication as PeerDB cannot discern, in that case, what is the schema and what is the table as it splits on dot.
341341
Effort is being made to support input of schema and table separately to get around this limitation.
342+
343+
### Initial load completed but there is no/missing data on ClickHouse. What could be the issue? {#initial-load-issue}
344+
If your initial load has completed without error but your destination ClickHouse table is missing data, it might be that you have RLS (Row Level Security) policies enabled on your source Postgres tables.
345+
Also worth checking:
346+
- If the user has sufficient permissions to read the source tables.
347+
- If there are any row policies on ClickHouse side which might be filtering out rows.

docs/integrations/data-ingestion/clickpipes/postgres/source/supabase.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ The connection pooler is not supported for CDC based replication, hence it needs
7777

7878
:::
7979

80+
## Note on RLS {#note-on-rls}
81+
The ClickPipes Postgres user must not be restricted by RLS policies, as it can lead to missing data. You can disable RLS policies for the user by running the below command:
82+
```sql
83+
ALTER USER clickpipes_user BYPASSRLS;
84+
```
85+
8086
## What's next? {#whats-next}
8187

8288
You can now [create your ClickPipe](../index.md) and start ingesting data from your Postgres instance into ClickHouse Cloud.

0 commit comments

Comments
 (0)