Skip to content

Conversation

eatonphil
Copy link
Contributor

No description provided.

@eatonphil eatonphil requested a review from a team as a code owner August 20, 2025 00:03

```console
pg_dump -h $PG_HOST -p $PG_PORT -U $PG_USER -d $PGD_DB -v --exclude-schema='"bdr"' --exclude-extension='"bdr"' --section=pre-data -f pgd-pre-data.sql
pg_dump -h $PG_HOST -p $PG_PORT -U $PG_USER -d $PGD_DB -v --exclude-schema='"bdr"' --exclude-extension='"bdr"' --section=data -f pgd-data.sql
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would do normal pg_dumps and load the separate sections via pg_restore, SQL format is slow

Copy link
Contributor

@PJMODOS PJMODOS Aug 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i.e.

pg_dump ... -Fc mydb.dump

and then

pg_restore ... --section=pre-data mydb.dump
psql ... -c 'SELECT bdr.wait_slot_confirm_lsn(NULL, NULL)'
pg_restore ... --section=data mydb.dump
psql ... -c 'SELECT bdr.wait_slot_confirm_lsn(NULL, NULL)'
pg_restore ... --section=post-data mydb.dump

maybe I'd even put options=-cbdr.ddl_locking=off into connection string (but not sure I want to tell that users as common thing...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants