pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER 6+ messages / 1 participants [nested] [flat]
* pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER @ 2017-01-04 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-01-04 23:00 UTC (permalink / raw) To: pgsql-committers Handle OID column inheritance correctly in ALTER TABLE ... INHERIT. Inheritance operations must treat the OID column, if any, much like regular user columns. But MergeAttributesIntoExisting() neglected to do that, leading to weird results after a table with OIDs is associated to a parent with OIDs via ALTER TABLE ... INHERIT. Report and patch by Amit Langote, reviewed by Ashutosh Bapat, some adjustments by me. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/cb13cfe7-a48c-5720-c383-bb843ab28298@lab.ntt.co.jp Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/d86f40009b6b019f794819a9af9038cff0cac6f3 Modified Files -------------- src/backend/commands/tablecmds.c | 44 +++++++++++++++++++++++++++++-- src/test/regress/expected/inherit.out | 49 +++++++++++++++++++++++++++++++++++ src/test/regress/sql/inherit.sql | 26 +++++++++++++++++++ 3 files changed, 117 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER @ 2017-01-04 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-01-04 23:00 UTC (permalink / raw) To: pgsql-committers Handle OID column inheritance correctly in ALTER TABLE ... INHERIT. Inheritance operations must treat the OID column, if any, much like regular user columns. But MergeAttributesIntoExisting() neglected to do that, leading to weird results after a table with OIDs is associated to a parent with OIDs via ALTER TABLE ... INHERIT. Report and patch by Amit Langote, reviewed by Ashutosh Bapat, some adjustments by me. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/cb13cfe7-a48c-5720-c383-bb843ab28298@lab.ntt.co.jp Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/f64554b99a00ed0fe4097811dfa94265581c27ae Modified Files -------------- src/backend/commands/tablecmds.c | 33 +++++++++++++++++++++++ src/test/regress/expected/inherit.out | 49 +++++++++++++++++++++++++++++++++++ src/test/regress/sql/inherit.sql | 26 +++++++++++++++++++ 3 files changed, 108 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER @ 2017-01-04 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-01-04 23:00 UTC (permalink / raw) To: pgsql-committers Handle OID column inheritance correctly in ALTER TABLE ... INHERIT. Inheritance operations must treat the OID column, if any, much like regular user columns. But MergeAttributesIntoExisting() neglected to do that, leading to weird results after a table with OIDs is associated to a parent with OIDs via ALTER TABLE ... INHERIT. Report and patch by Amit Langote, reviewed by Ashutosh Bapat, some adjustments by me. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/cb13cfe7-a48c-5720-c383-bb843ab28298@lab.ntt.co.jp Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/50c8196f946d55f7f4b998491e48f592f711c4fe Modified Files -------------- src/backend/commands/tablecmds.c | 33 +++++++++++++++++++++++ src/test/regress/expected/inherit.out | 49 +++++++++++++++++++++++++++++++++++ src/test/regress/sql/inherit.sql | 26 +++++++++++++++++++ 3 files changed, 108 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER @ 2017-01-04 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-01-04 23:00 UTC (permalink / raw) To: pgsql-committers Handle OID column inheritance correctly in ALTER TABLE ... INHERIT. Inheritance operations must treat the OID column, if any, much like regular user columns. But MergeAttributesIntoExisting() neglected to do that, leading to weird results after a table with OIDs is associated to a parent with OIDs via ALTER TABLE ... INHERIT. Report and patch by Amit Langote, reviewed by Ashutosh Bapat, some adjustments by me. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/cb13cfe7-a48c-5720-c383-bb843ab28298@lab.ntt.co.jp Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/696d40d303af1e92fbbe4192a93c5a94340fc22c Modified Files -------------- src/backend/commands/tablecmds.c | 33 +++++++++++++++++++++++ src/test/regress/expected/inherit.out | 49 +++++++++++++++++++++++++++++++++++ src/test/regress/sql/inherit.sql | 26 +++++++++++++++++++ 3 files changed, 108 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER @ 2017-01-04 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-01-04 23:00 UTC (permalink / raw) To: pgsql-committers Handle OID column inheritance correctly in ALTER TABLE ... INHERIT. Inheritance operations must treat the OID column, if any, much like regular user columns. But MergeAttributesIntoExisting() neglected to do that, leading to weird results after a table with OIDs is associated to a parent with OIDs via ALTER TABLE ... INHERIT. Report and patch by Amit Langote, reviewed by Ashutosh Bapat, some adjustments by me. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/cb13cfe7-a48c-5720-c383-bb843ab28298@lab.ntt.co.jp Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/5f89a9885e118ab22689f9641237f7941d9ba8fd Modified Files -------------- src/backend/commands/tablecmds.c | 33 +++++++++++++++++++++++ src/test/regress/expected/inherit.out | 49 +++++++++++++++++++++++++++++++++++ src/test/regress/sql/inherit.sql | 26 +++++++++++++++++++ 3 files changed, 108 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER @ 2017-01-04 23:00 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-01-04 23:00 UTC (permalink / raw) To: pgsql-committers Handle OID column inheritance correctly in ALTER TABLE ... INHERIT. Inheritance operations must treat the OID column, if any, much like regular user columns. But MergeAttributesIntoExisting() neglected to do that, leading to weird results after a table with OIDs is associated to a parent with OIDs via ALTER TABLE ... INHERIT. Report and patch by Amit Langote, reviewed by Ashutosh Bapat, some adjustments by me. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/cb13cfe7-a48c-5720-c383-bb843ab28298@lab.ntt.co.jp Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/6c4cf2be81e4b783402aecf49df2f1120e42b99b Modified Files -------------- src/backend/commands/tablecmds.c | 33 +++++++++++++++++++++++ src/test/regress/expected/inherit.out | 49 +++++++++++++++++++++++++++++++++++ src/test/regress/sql/inherit.sql | 26 +++++++++++++++++++ 3 files changed, 108 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2017-01-04 23:00 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-01-04 23:00 pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER Tom Lane <tgl@sss.pgh.pa.us> 2017-01-04 23:00 pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER Tom Lane <tgl@sss.pgh.pa.us> 2017-01-04 23:00 pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER Tom Lane <tgl@sss.pgh.pa.us> 2017-01-04 23:00 pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER Tom Lane <tgl@sss.pgh.pa.us> 2017-01-04 23:00 pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER Tom Lane <tgl@sss.pgh.pa.us> 2017-01-04 23:00 pgsql: Handle OID column inheritance correctly in ALTER TABLE ... INHER Tom Lane <tgl@sss.pgh.pa.us>
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