Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKrFZ-0003gU-0l for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Feb 2015 16:31:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKrFY-0005Iz-H7 for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Feb 2015 16:31:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKrFX-0005Ir-Rp for pgsql-bugs@postgresql.org; Mon, 09 Feb 2015 16:31:52 +0000 Received: from smtpdg226.aruba.it ([62.149.158.226] helo=smtpcmd01240.aruba.it) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKrFT-0007M3-Hl for pgsql-bugs@postgresql.org; Mon, 09 Feb 2015 16:31:49 +0000 Received: from 756b4.gi.lan ([86.185.231.10]) by smtpcmd03.ad.aruba.it with bizsmtp id qGXj1p00a0E71n201GXjeS; Mon, 09 Feb 2015 17:31:44 +0100 Received: by 756b4.gi.lan (masqmail 0.3.4, from userid 1000) id 1YKrFP-3XL-00 for ; Mon, 09 Feb 2015 17:31:43 +0100 Date: Mon, 9 Feb 2015 17:31:43 +0100 From: Gianni Ciolli To: pgsql-bugs@postgresql.org Subject: BUG #12752: example SQL Message-ID: <20150209163143.GC24192@756b4.gi.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) 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 Please find below some code that reproduces the bug. In the report I was off by one: on my system the bug can be reproduced on 9.0 or later, but not on 8.4. Sorry for the mistake! Best wishes, Dr. Gianni Ciolli - 2ndQuadrant Italia PostgreSQL Training, Services and Support gianni.ciolli@2ndquadrant.it | www.2ndquadrant.it ---8<------8<------8<------8<------8<------8<------8<------8<------8<--- gianni=# CREATE TABLE t(oldname int primary key); CREATE TABLE gianni=# ALTER TABLE t rename column oldname to newname; ALTER TABLE gianni=# \d t_pkey Index "public.t_pkey" Column | Type | Definition ---------+---------+------------ oldname | integer | newname primary key, btree, for table "public.t" gianni=# SELECT attname FROM pg_attribute WHERE attrelid = regclass 't_pkey'; attname --------- oldname (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