pgsql: Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING IND

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING IND
Date: 2016-04-15 16:11:54
Message-ID: E1ar6La-00027v-HG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING INDEX.

Careless coding added by commit 07cacba983ef79be could result in a crash
or a bizarre error message if someone tried to select an index on the
OID column as the replica identity index for a table. Back-patch to 9.4
where the feature was introduced.

Discussion: CAKJS1f8TQYgTRDyF1_u9PVCKWRWz+DkieH=U7954HeHVPJKaKg(at)mail(dot)gmail(dot)com

David Rowley

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8eed31ffb84cda04cb20f3e780213c17f9f3223f

Modified Files
--------------
src/backend/commands/tablecmds.c | 18 ++++++++++++++----
src/test/regress/expected/replica_identity.out | 9 ++++++++-
src/test/regress/sql/replica_identity.sql | 6 +++++-
3 files changed, 27 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2016-04-15 17:04:22 pgsql: Use less-generic names in matview.sql.
Previous Message Robert Haas 2016-04-15 16:08:27 pgsql: postgres_fdw: Clean up handling of system columns.