Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKcPz-0006Qi-Nn for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Mar 2014 23:37:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WKcPz-0000HY-5M for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Mar 2014 23:37:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKcPy-0000HN-9L for pgsql-bugs@postgresql.org; Mon, 03 Mar 2014 23:37:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WKcPv-0002ZO-DL for pgsql-bugs@postgresql.org; Mon, 03 Mar 2014 23:37:05 +0000 MIME-Version: 1.0 Subject: BUG #9430: Strange error during pg_dump with concurrent alter table working To: pgsql-bugs@postgresql.org From: maxim.boguk@gmail.com Date: Mon, 03 Mar 2014 23:36:16 +0000 Message-ID: <20140303233616.1916.67689@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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