pgsql: Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING IND - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING IND
Date
Msg-id E1ar6La-00027u-HC@gemulon.postgresql.org
Whole thread Raw
List 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@mail.gmail.com

David Rowley

Branch
------
REL9_5_STABLE

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

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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: postgres_fdw: Clean up handling of system columns.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING IND