From: Gianni Ciolli <gianni.ciolli@2ndquadrant.it>
To: pgsql-bugs@postgresql.org
Subject: BUG #12752: example SQL
Date: Mon, 9 Feb 2015 17:31:43 +0100
Message-ID: <20150209163143.GC24192@756b4.gi.lan> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: gianni.ciolli@2ndquadrant.it
Subject: Re: BUG #12752: example SQL
In-Reply-To: <20150209163143.GC24192@756b4.gi.lan>
References: <20150209163143.GC24192@756b4.gi.lan>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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