pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: bashtanov@imap.cc
To: pgsql-bugs@postgresql.org
Subject: BUG #14407: pg_attribute shows old column names for indexes
Date: Tue, 01 Nov 2016 10:22:26 +0000
Message-ID: <20161101102226.15988.44326@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14407
Logged by:          Alexey Bashtanov
Email address:      bashtanov@imap.cc
PostgreSQL version: 9.6.1
Operating system:   Ubuntu Linux 14.04.4 LTS
Description:        

STEPS TO REPRODUCE:
create table tt(a int primary key);
alter table tt rename column a to b;
select attrelid::regclass, attname from pg_attribute where attrelid =
any('{tt,tt_pkey}'::regclass[]) and attnum > 0;

EXPECTED:
 attrelid | attname 
----------+---------
 tt       | b
 tt_pkey  | b

RECEIVED:
 attrelid | attname 
----------+---------
 tt       | b
 tt_pkey  | a

reproduced on 9.4.9, 9.6.1 and master

Regards,
  Alexey


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (2+ messages)  latest in thread

Message-ID: <20161101102226.15988.44326@wrigleys.postgresql.org>
Permalink:  ../20161101102226.15988.44326@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161101102226.15988.44326@wrigleys.postgresql.org

 · 

reply

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: bashtanov@imap.cc
  Subject: Re: BUG #14407: pg_attribute shows old column names for indexes
  In-Reply-To: <20161101102226.15988.44326@wrigleys.postgresql.org>
  References: <20161101102226.15988.44326@wrigleys.postgresql.org>

* 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