]> granicus.if.org Git - postgresql/commit
Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING INDEX.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Apr 2016 16:11:27 +0000 (12:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Apr 2016 16:11:27 +0000 (12:11 -0400)
commit8f8e65d348af7aa6899eb722dddeb6b88c682769
tree9583ef711dc3188d8b9779a27f904b93a320f8c5
parentedd57377f0db00a66d39029aa5239a96280887ef
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
src/backend/commands/tablecmds.c
src/test/regress/expected/replica_identity.out
src/test/regress/sql/replica_identity.sql