pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dump fails on temp tables
2+ messages / 2 participants
[nested] [flat]
* pg_dump fails on temp tables
@ 2016-04-04 08:58 Artem Tomyuk <admin@leboutique.com>
0 siblings, 1 reply; 2+ messages in thread
From: Artem Tomyuk @ 2016-04-04 08:58 UTC (permalink / raw)
To: pgsql-admin
Hi.
I am trying to do multi-threaded backup with
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_dump fails on temp tables
@ 2016-04-04 13:52 Tom Lane <tgl@sss.pgh.pa.us>
parent: Artem Tomyuk <admin@leboutique.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2016-04-04 13:52 UTC (permalink / raw)
To: Artem Tomyuk <admin@leboutique.com>; +Cc: pgsql-admin
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
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-04-04 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-04 08:58 pg_dump fails on temp tables Artem Tomyuk <admin@leboutique.com>
2016-04-04 13:52 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox