Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPceo-0003Zw-KY for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Mar 2014 18:53:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WPceo-000551-3a for pgsql-bugs@arkaria.postgresql.org; Mon, 17 Mar 2014 18:53:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPcen-00054u-3m for pgsql-bugs@postgresql.org; Mon, 17 Mar 2014 18:53:05 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WPcek-0008AD-A0 for pgsql-bugs@postgresql.org; Mon, 17 Mar 2014 18:53:04 +0000 MIME-Version: 1.0 Subject: BUG #9606: pg_class relhaspkey column not updated on removal of primary key To: pgsql-bugs@postgresql.org From: jeff@pgexperts.com Date: Mon, 17 Mar 2014 18:52:55 +0000 Message-ID: <20140317185255.20724.49675@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) 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: 9606 Logged by: Jeff Frost Email address: jeff@pgexperts.com PostgreSQL version: 9.2.7 Operating system: Linux Description: pkey_test=# show server_version; server_version ---------------- 9.2.7 (1 row) pkey_test=# create table foo ( bar serial primary key); NOTICE: CREATE TABLE will create implicit sequence "foo_bar_seq" for serial column "foo.bar" NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "foo_pkey" for table "foo" CREATE TABLE pkey_test=# select relname, relhaspkey FROM pg_class where relname = 'foo'; relname | relhaspkey ---------+------------ foo | t (1 row) pkey_test=# alter table foo drop constraint foo_pkey; ALTER TABLE pkey_test=# select relname, relhaspkey FROM pg_class where relname = 'foo'; relname | relhaspkey ---------+------------ foo | t (1 row) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs