Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_backup_start #5

Open
nmoreaud opened this issue Nov 14, 2024 · 0 comments
Open

pg_backup_start #5

nmoreaud opened this issue Nov 14, 2024 · 0 comments

Comments

@nmoreaud
Copy link

nmoreaud commented Nov 14, 2024

Hello

I am testing the concept of this extension, manually.
On my local database, if I modify a table and then make a copy of pgdata/base/XXX, the copy doesn't contain the modified data.
I need to call pg_backup_start('test', True) and keep the session open during the copy to ensure the data is flushed into pgdata/base/XXX directory.

It also seems that using subvolumes is not required.
This command works well:
cp -ra --reflink=always pgdata/base/159591 pgdata/base/111111

I'm not sure if this technique can be used for production software.
PostgreSQL documentation contains a lot of warnings related to filesystem copies: https://www.postgresql.org/docs/current/backup-file.html

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

No branches or pull requests

1 participant