Fix possible crash in ALTER TABLE ... REPLICA IDENTITY USING INDEX.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +14 −4 |
| src/test/regress/expected/replica_identity.out | modified | +8 −1 |
| src/test/regress/sql/replica_identity.sql | modified | +5 −1 |