pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix infer_arbiter_indexes() to not barf on system columns. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix infer_arbiter_indexes() to not barf on system columns. @ 2016-05-11 21:07 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-05-11 21:07 UTC (permalink / raw) To: pgsql-committers Fix infer_arbiter_indexes() to not barf on system columns. While it could be argued that rejecting system column mentions in the ON CONFLICT list is an unsupported feature, falling over altogether just because the table has a unique index on OID is indubitably a bug. As far as I can tell, fixing infer_arbiter_indexes() is sufficient to make ON CONFLICT (oid) actually work, though making a regression test for that case is problematic because of the impossibility of setting the OID counter to a known value. Minor cosmetic cleanups along with the bug fix. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/8a13d5e6d1bb9ff9460c72992657077e57e30c32 Modified Files -------------- src/backend/optimizer/util/plancat.c | 43 ++++++++++++++---------------------- 1 file changed, 16 insertions(+), 27 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] 2+ messages in thread
* pgsql: Fix infer_arbiter_indexes() to not barf on system columns. @ 2016-05-11 21:07 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-05-11 21:07 UTC (permalink / raw) To: pgsql-committers Fix infer_arbiter_indexes() to not barf on system columns. While it could be argued that rejecting system column mentions in the ON CONFLICT list is an unsupported feature, falling over altogether just because the table has a unique index on OID is indubitably a bug. As far as I can tell, fixing infer_arbiter_indexes() is sufficient to make ON CONFLICT (oid) actually work, though making a regression test for that case is problematic because of the impossibility of setting the OID counter to a known value. Minor cosmetic cleanups along with the bug fix. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/428484ce102b3d4e6308c8504744558c2e2d99af Modified Files -------------- src/backend/optimizer/util/plancat.c | 43 ++++++++++++++---------------------- 1 file changed, 16 insertions(+), 27 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] 2+ messages in thread
end of thread, other threads:[~2016-05-11 21:07 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-05-11 21:07 pgsql: Fix infer_arbiter_indexes() to not barf on system columns. Tom Lane <tgl@sss.pgh.pa.us> 2016-05-11 21:07 pgsql: Fix infer_arbiter_indexes() to not barf on system columns. 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