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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,23 +203,23 @@ For manually created publications, please add any tables you want to the publica
203
203
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.
- **At Minimum:** Set [`max_slot_wal_keep_size`](https://www.postgresql.org/docs/devel/runtime-config-replication.html#GUC-MAX-SLOT-WAL-KEEP-SIZE) to retain at least **two days' worth** of WAL data.
209
209
-**For Large Databases (High Transaction Volume):** Retain at least **2-3times** the peak WAL generation per day.
210
210
-**For Storage-Constrained Environments:** Tune this conservatively to **avoid disk exhaustion** while ensuring replication stability.
211
211
212
-
### How to calculate the right value {#how-to-calculate-the-right-value}
212
+
#### How to calculate the right value {#how-to-calculate-the-right-value}
213
213
214
214
To determine the right setting, measure the WAL generation rate:
215
215
216
-
#### For PostgreSQL 10+ {#for-postgresql-10}
216
+
##### For PostgreSQL 10+ {#for-postgresql-10}
217
217
218
218
```sql
219
219
SELECT pg_wal_lsn_diff(pg_current_wal_insert_lsn(), '0/0') / 1024 / 1024 AS wal_generated_mb;
220
220
```
221
221
222
-
#### For PostgreSQL 9.6 and below: {#for-postgresql-96-and-below}
222
+
##### For PostgreSQL 9.6 and below: {#for-postgresql-96-and-below}
223
223
224
224
```sql
225
225
SELECT pg_xlog_location_diff(pg_current_xlog_insert_location(), '0/0') / 1024 / 1024 AS wal_generated_mb;
0 commit comments