pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6485: Primary index key not updated uniformly
4+ messages / 3 participants
[nested] [flat]
* BUG #6485: Primary index key not updated uniformly
@ 2012-02-23 03:40 innomotive@gmail.com
0 siblings, 1 reply; 4+ messages in thread
From: innomotive@gmail.com @ 2012-02-23 03:40 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 6485
Logged by: Ramanujam
Email address: innomotive@gmail.com
PostgreSQL version: 9.0.3
Operating system: Windows 7 Home Premium
Description:
Primary key information in pg_attribute table is not updated when a column
name is renamed.
Command used:
ALTER TABLE table_name RENAME COLUMN old_column TO new_column
Entries in pg_attribute still carries old_column.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6485: Primary index key not updated uniformly
@ 2012-02-23 06:22 Tom Lane <tgl@sss.pgh.pa.us>
parent: innomotive@gmail.com
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2012-02-23 06:22 UTC (permalink / raw)
To: innomotive@gmail.com; +Cc: pgsql-bugs
innomotive@gmail.com writes:
> Primary key information in pg_attribute table is not updated when a column
> name is renamed.
This is intentional --- we gave up updating index column names awhile
ago.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6485: Primary index key not updated uniformly
@ 2012-02-23 06:50 Ramanujam <innomotive@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Ramanujam @ 2012-02-23 06:50 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
On Thu, Feb 23, 2012 at 3:22 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> innomotive@gmail.com writes:
>
> This is intentional --- we gave up updating index column names awhile
> ago.
Is pg_constraint a credible place to retrieve primary key information from?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6485: Primary index key not updated uniformly
@ 2012-02-23 16:21 Tom Lane <tgl@sss.pgh.pa.us>
parent: Ramanujam <innomotive@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2012-02-23 16:21 UTC (permalink / raw)
To: Ramanujam <innomotive@gmail.com>; +Cc: pgsql-bugs
Ramanujam <innomotive@gmail.com> writes:
> On Thu, Feb 23, 2012 at 3:22 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> This is intentional --- we gave up updating index column names awhile
>> ago.
> Is pg_constraint a credible place to retrieve primary key information from?
I'd try the information_schema views first.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2012-02-23 16:21 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 03:40 BUG #6485: Primary index key not updated uniformly innomotive@gmail.com
2012-02-23 06:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-02-23 06:50 ` Ramanujam <innomotive@gmail.com>
2012-02-23 16:21 ` 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