Re: logical replication out of memory

2024-07-31 Thread khan Affan
o > "NOT in replication list" tables ? that can help reduce this kind of > error. > > Thanks, > > James > > >> >> >> >> *From:* khan Affan >> *Sent:* Wednesday, July 31, 2024 1:42 PM >> *To:* James Pang >> *Cc:* pgsql-

Re: logical replication out of memory

2024-07-30 Thread James Pang
From:* khan Affan > *Sent:* Wednesday, July 31, 2024 1:42 PM > *To:* James Pang > *Cc:* pgsql-performance@lists.postgresql.org > *Subject:* Re: logical replication out of memory > > > > Hi Pang > > The text column is exceptionally large, Your server must be out of memory,

Re: logical replication out of memory

2024-07-30 Thread khan Affan
Hi Pang The text column is exceptionally large, Your server must be out of memory, Such a process ran out of memory while handling a large text column update. I suggest using an S3 bucket for such files, Consider increasing the memory-related configuration parameters, like work_mem, maintenance_

Re: logical replication out of memory

2024-07-30 Thread James Pang
chaolpan) 於 2024年7月31日週三 上午10:28寫道: > > > > > *From:* James Pang > *Sent:* Wednesday, July 31, 2024 10:18 AM > *To:* pgsql-performance@lists.postgresql.org > *Subject:* logical replication out of memory > > > > > > > > 2024-07-31 00:01:02.795 >

logical replication out of memory

2024-07-30 Thread James Pang
2024-07-31 00:01:02.795 UTC:10.240.6.139(33068):repl13801@pgpodb:[3603770]:[10-1]:pgreps_13801ERROR: out of memory 2024-07-31 00:01:02.795 UTC:10.240.6.139(33068):repl13801@pgpodb:[3603770]:[11-1]:pgreps_13801DETAIL: Cannot enlarge string buffer containing 378355896 bytes by 756711422 more bytes.

Re: data consolidation: logical replication design considerations

2022-07-23 Thread Rory Campbell-Lange
On 16/07/22, Rory Campbell-Lange (r...@campbell-lange.net) wrote: > I'd be grateful for some comments on the advisability of using a large > number of concurrent logical replication publications/subscriptions. > Below I've set out the current environment and a suggested design.

Re: data consolidation: logical replication design considerations

2022-07-18 Thread Rory Campbell-Lange
On 17/07/22, Rick Otten (rottenwindf...@gmail.com) wrote: > On Sat, Jul 16, 2022 at 12:07 PM Rory Campbell-Lange < > r...@campbell-lange.net> wrote: > > > I'd be grateful for some comments on the advisability of using a large > > number of concurrent logical replic

Re: data consolidation: logical replication design considerations

2022-07-17 Thread Rick Otten
On Sat, Jul 16, 2022 at 12:07 PM Rory Campbell-Lange < r...@campbell-lange.net> wrote: > I'd be grateful for some comments on the advisability of using a large > number of concurrent logical replication publications/subscriptions. > Below I've set out the current en

data consolidation: logical replication design considerations

2022-07-16 Thread Rory Campbell-Lange
I'd be grateful for some comments on the advisability of using a large number of concurrent logical replication publications/subscriptions. Below I've set out the current environment and a suggested design. Apologies for the length of this email. We presently have many hundreds of small

Re: Logical Replication speed-up initial data

2021-08-05 Thread Jeff Janes
On Thu, Aug 5, 2021 at 12:57 AM Nikhil Shetty wrote: > Hi, > > Thank you for the suggestion. > > We tried by dropping indexes and it worked faster compared to what we saw > earlier. We wanted to know if anybody has done any other changes that helps > speed-up initial data load without dropping in

Re: Logical Replication speed-up initial data

2021-08-05 Thread Vijaykumar Jain
On Fri, 6 Aug 2021 at 00:15, Nikhil Shetty wrote: > Hi Vijaykumar, > > Thanks for the details. > In this method you are saying the pg_basebackup will make the initial load > faster ? > We intend to bring only a few tables. Using pg_basebackup will clone an > entire instance. > yeah. In that case

Re: Logical Replication speed-up initial data

2021-08-05 Thread Nikhil Shetty
ical_create_subscriber.pl> > Once you attain some reasonable sync state, you can drop the pglogical > extension, and check if things continue fine. > I have done something similar when upgrading from 9.6 to 11 using > pglogical and then dropping the extension and it was smooth, >

Re: Logical Replication speed-up initial data

2021-08-05 Thread Nikhil Shetty
to the simple steps i am posting here that demonstrates > pg_dump/pg_restore instead. > > If you cannot pause the app, then, you could look into how you > could use pg_replication_origin_advance > <https://www.postgresql.org/docs/13/functions-admin.html#PG-REPLICATION-ORIGIN-ADVANCE>

Re: Logical Replication speed-up initial data

2021-08-05 Thread Avinash Kumar
2 : Create Publication on the Primary CREATE PUBLICATION FOR ALL TABLES; Step 3 : Create Logical Replication Slot on the Primary SELECT * FROM pg_create_logical_replication_slot('', 'pgoutput'); Step 4 : Create Subscription but do not enable the Subscription CREATE SUBSCRIPT

Re: Logical Replication speed-up initial data

2021-08-05 Thread Vijaykumar Jain
ne. I have done something similar when upgrading from 9.6 to 11 using pglogical and then dropping the extension and it was smooth, maybe you need to try this out and share if things works fine. and The 1-2-3 for PostgreSQL Logical Replication Using an RDS Snapshot - Percona Database Performance B

Re: Logical Replication speed-up initial data

2021-08-05 Thread Rick Otten
On Thu, Aug 5, 2021 at 12:57 AM Nikhil Shetty wrote: > Hi, > > Thank you for the suggestion. > > We tried by dropping indexes and it worked faster compared to what we saw > earlier. We wanted to know if anybody has done any other changes that helps > speed-up initial data load without dropping in

Re: Logical Replication speed-up initial data

2021-08-04 Thread Nikhil Shetty
the destination >> first if possible. After that, you can add the indexes. >> >> Regards. >> >> >> Nikhil Shetty , 4 Ağu 2021 Çar, 18:07 tarihinde >> şunu yazdı: >> >>> Hi Team, >>> >>> We have a highly transactional system as th

Re: Logical Replication speed-up initial data

2021-08-04 Thread Nikhil Shetty
; >> We have a highly transactional system as the source of logical >> replication and the database size is 500GB+. We are replicating all tables >> from source using logical replication. >> >> For two tables the initial data load is very slow and it never completes >&

Re: Logical Replication speed-up initial data

2021-08-04 Thread Christophe Pettus
> On Aug 4, 2021, at 08:06, Nikhil Shetty wrote: > > How can we increase the speed of the initial data load without dropping the > indexes on destination? You can do the usual steps of increasing checkpoint_timeout and max_wal_size (since incoming logical replication changes ar

Re: Logical Replication speed-up initial data

2021-08-04 Thread Stefano Amoroso
Team, >> >> We have a highly transactional system as the source of logical >> replication and the database size is 500GB+. We are replicating all tables >> from source using logical replication. >> >> For two tables the initial data load is very slow and it neve

Re: Logical Replication speed-up initial data

2021-08-04 Thread Hüseyin Demir
f logical replication > and the database size is 500GB+. We are replicating all tables from source > using logical replication. > > For two tables the initial data load is very slow and it never completes > even after 24hrs+ > Table size is under 100GB and index size is around 400GB. > &

Logical Replication speed-up initial data

2021-08-04 Thread Nikhil Shetty
Hi Team, We have a highly transactional system as the source of logical replication and the database size is 500GB+. We are replicating all tables from source using logical replication. For two tables the initial data load is very slow and it never completes even after 24hrs+ Table size is under

Re: logical replication

2021-05-21 Thread Marc Millas
perfect :-) thanks Marc MILLAS Senior Architect +33607850334 www.mokadb.com On Fri, May 21, 2021 at 3:21 PM Andrew Dunstan wrote: > > On 5/21/21 8:41 AM, Marc Millas wrote: > > Hi, > > > > my POC in postgres 12.(important ?) > > > > if I setup 2 postgres clusters, and create a publication in

Re: logical replication

2021-05-21 Thread Andrew Dunstan
On 5/21/21 8:41 AM, Marc Millas wrote: > Hi, > > my POC in postgres 12.(important ?) > > if I setup 2 postgres clusters, and create a publication in one and a > subscription in the other, > and do on the pub an update which does not change the data (updating > an existing record with same data) t

logical replication

2021-05-21 Thread Marc Millas
Hi, my POC in postgres 12.(important ?) if I setup 2 postgres clusters, and create a publication in one and a subscription in the other, and do on the pub an update which does not change the data (updating an existing record with same data) then this (useless) update go through replication.(ie co

Understanding logical replication lag

2021-01-21 Thread Patrick Molgaard
Hi all, *My top-level query is*: I'm using logical replication under pg 9.6 to do a kind of change data capture and I'm seeing occasional extended periods of significant lag. I'm not sure what conceptual model I'm missing in order to understand why this happens. *The de

Re: Logical replication performance

2019-12-09 Thread Jeff Janes
th the “replica identity”, giving you an opportunity to go build the index without losing all of the work. > Will the logical replication flow be buffered by the replication slots > during index creation and get in sync afterwards or will it conflict due to > locking issues? >

Re: Logical replication performance

2019-11-29 Thread Flavio Henrique Araque Gurgel
Em sex., 29 de nov. de 2019 às 17:06, Florian Philippon < florian.philip...@doctolib.com> escreveu: > Hello community! > > Hi Florian > We are currently testing PostgreSQL 11's built-in logical replication. We > are trying to initialize a subscriber (from scratch)

Logical replication performance

2019-11-29 Thread Florian Philippon
Hello community! We are currently testing PostgreSQL 11's built-in logical replication. We are trying to initialize a subscriber (from scratch) from a publisher with a large database (+6TB) with around 220 tables. We tweaked the configuration parameters below, both on publisher and subsc