pg_dump -Z 9 -j 8 -F c -F d -T "doc*" -U postgres -d foo
but from time to time it fails with error
pg_dump: [parallel archiver] could not obtain lock on relation "public.tt1"
This usually means that someone requested an ACCESS EXCLUSIVE lock on the table after the pg_dump parent process had gotten the initial ACCESS SHARE lock on the table.
How I can avoid this, just adding -T "tt*"?
Why pg_dump trying to dump temp tables? As i know temp tables are created and visible only in one session?
Thanks.
Artem Tomyuk <admin@leboutique.com> writes:
> Why pg_dump trying to dump temp tables?
It's not supposed to, and as far as I can tell in some simple tests,
it doesn't unless you force it to with something like -t 'pg_temp*.*'.
Are you sure those tables are actually temp? What version of pg_dump is
that exactly?
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера