pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. 3+ messages / 1 participants [nested] [flat]
* pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. @ 2017-01-18 20:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2017-01-18 20:22 UTC (permalink / raw) To: pgsql-committers Disable transforms that replaced AT TIME ZONE with RelabelType. These resulted in wrong answers if the relabeled argument could be matched to an index column, as shown in bug #14504 from Evgeniy Kozlov. We might be able to resurrect these optimizations by adjusting the planner's treatment of RelabelType, or by adjusting btree's rules for selecting comparison functions, but either solution will take careful analysis and does not sound like a fit candidate for backpatching. I left the catalog infrastructure in place and just reduced the transform functions to always-return-NULL. This would be necessary anyway in the back branches, and it doesn't seem important to be more invasive in HEAD. Bug introduced by commit b8a18ad48. Back-patch to 9.5 where that came in. Report: https://postgr.es/m/20170118144828.1432.52823@wrigleys.postgresql.org Discussion: https://postgr.es/m/18771.1484759439@sss.pgh.pa.us Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/c22ecc6562aac895f0f0529707d7bdb460fd2a49 Modified Files -------------- src/backend/utils/adt/timestamp.c | 123 +++--------------------------- src/test/regress/expected/timestamptz.out | 19 +++++ src/test/regress/sql/timestamptz.sql | 9 +++ 3 files changed, 38 insertions(+), 113 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] 3+ messages in thread
* pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. @ 2017-01-18 20:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2017-01-18 20:22 UTC (permalink / raw) To: pgsql-committers Disable transforms that replaced AT TIME ZONE with RelabelType. These resulted in wrong answers if the relabeled argument could be matched to an index column, as shown in bug #14504 from Evgeniy Kozlov. We might be able to resurrect these optimizations by adjusting the planner's treatment of RelabelType, or by adjusting btree's rules for selecting comparison functions, but either solution will take careful analysis and does not sound like a fit candidate for backpatching. I left the catalog infrastructure in place and just reduced the transform functions to always-return-NULL. This would be necessary anyway in the back branches, and it doesn't seem important to be more invasive in HEAD. Bug introduced by commit b8a18ad48. Back-patch to 9.5 where that came in. Report: https://postgr.es/m/20170118144828.1432.52823@wrigleys.postgresql.org Discussion: https://postgr.es/m/18771.1484759439@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b21e665f2df7ba6611d2fa6f845e4803deaf14c3 Modified Files -------------- src/backend/utils/adt/timestamp.c | 123 +++--------------------------- src/test/regress/expected/timestamptz.out | 19 +++++ src/test/regress/sql/timestamptz.sql | 9 +++ 3 files changed, 38 insertions(+), 113 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] 3+ messages in thread
* pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. @ 2017-01-18 20:22 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2017-01-18 20:22 UTC (permalink / raw) To: pgsql-committers Disable transforms that replaced AT TIME ZONE with RelabelType. These resulted in wrong answers if the relabeled argument could be matched to an index column, as shown in bug #14504 from Evgeniy Kozlov. We might be able to resurrect these optimizations by adjusting the planner's treatment of RelabelType, or by adjusting btree's rules for selecting comparison functions, but either solution will take careful analysis and does not sound like a fit candidate for backpatching. I left the catalog infrastructure in place and just reduced the transform functions to always-return-NULL. This would be necessary anyway in the back branches, and it doesn't seem important to be more invasive in HEAD. Bug introduced by commit b8a18ad48. Back-patch to 9.5 where that came in. Report: https://postgr.es/m/20170118144828.1432.52823@wrigleys.postgresql.org Discussion: https://postgr.es/m/18771.1484759439@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/74e67bbad6b435310c375dd9f57c0210ef796bd0 Modified Files -------------- src/backend/utils/adt/timestamp.c | 123 +++--------------------------- src/test/regress/expected/timestamptz.out | 19 +++++ src/test/regress/sql/timestamptz.sql | 9 +++ 3 files changed, 38 insertions(+), 113 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] 3+ messages in thread
end of thread, other threads:[~2017-01-18 20:22 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-01-18 20:22 pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. Tom Lane <tgl@sss.pgh.pa.us> 2017-01-18 20:22 pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. Tom Lane <tgl@sss.pgh.pa.us> 2017-01-18 20:22 pgsql: Disable transforms that replaced AT TIME ZONE with RelabelType. 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