pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #9430: Strange error during pg_dump with concurrent alter table working
2+ messages / 2 participants
[nested] [flat]

* BUG #9430: Strange error during pg_dump with concurrent alter table working
@ 2014-03-03 23:36 maxim.boguk@gmail.com
  2014-03-04 00:00 ` Re: BUG #9430: Strange error during pg_dump with concurrent alter table working Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: maxim.boguk@gmail.com @ 2014-03-03 23:36 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      9430
Logged by:          Maxim Boguk
Email address:      maxim.boguk@gmail.com
PostgreSQL version: 9.2.7
Operating system:   Linux
Description:        

Hi,

Today during performing database schema migration, I got strange error from
concurrently working
pg_dump -F p -s:

pg_dump: [archiver (db)] query failed: ERROR:  cache lookup failed for
constraint 18543
pg_dump: [archiver (db)] query was: SELECT tableoid, oid, conname,
pg_catalog.pg_get_constraintdef(oid) AS consrc, conislocal, convalidated
FROM pg_catalog.pg_constraint WHERE conrelid = '26756'::pg_catalog.oid   
AND contype = 'c' ORDER BY conname

This constraint was defined as:
[local]:5432 postgres@sports=# SELECT tableoid, oid, conname,
pg_catalog.pg_get_constraintdef(oid) AS consrc, conislocal, convalidated
FROM pg_catalog.pg_constraint WHERE conrelid = '26756'::pg_catalog.oid   
AND contype = 'c' ORDER BY conname;
-[ RECORD 1
]+--------------------------------------------------------------
tableoid     | 2606
oid          | 97238286
conname      | fb_rate_account_sport_user_id_cookie_check
consrc       | CHECK (((sport_user_id IS NOT NULL) OR (cookie IS NOT
NULL)))
conislocal   | t
convalidated | t


Concurrent ALTER command:
/*65851105*/alter table stat.fb_rate_account alter column sport_user_id type
int8;

I will try create self-containing test case in few hours.

Kind Regards,
Maksym



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #9430: Strange error during pg_dump with concurrent alter table working
  2014-03-03 23:36 BUG #9430: Strange error during pg_dump with concurrent alter table working maxim.boguk@gmail.com
@ 2014-03-04 00:00 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2014-03-04 00:00 UTC (permalink / raw)
  To: maxim.boguk@gmail.com; +Cc: pgsql-bugs

maxim.boguk@gmail.com writes:
> [ pg_dump sometimes fails in the presence of concurrent DDL ]

That's a known issue, unfortunately, and unlikely to go away anytime soon.
It's possible that the 9.4 changes to use MVCC scans for catalog access
will make it better, but I'm not sure that'll be sufficient to fix
everything.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-03-04 00:00 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-03-03 23:36 BUG #9430: Strange error during pg_dump with concurrent alter table working maxim.boguk@gmail.com
2014-03-04 00:00 ` 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