pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Ensure commands in extension scripts see the results of precedin 6+ messages / 1 participants [nested] [flat]
* pgsql: Ensure commands in extension scripts see the results of precedin @ 2017-05-02 22:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-05-02 22:06 UTC (permalink / raw) To: pgsql-committers Ensure commands in extension scripts see the results of preceding DDL. Due to a missing CommandCounterIncrement() call, parsing of a non-utility command in an extension script would not see the effects of the immediately preceding DDL command, unless that command's execution ends with CommandCounterIncrement() internally ... which some do but many don't. Report by Philippe Beaudoin, diagnosis by Julien Rouhaud. Rather remarkably, this bug has evaded detection since extensions were invented, so back-patch to all supported branches. Discussion: https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9209e07605afe0349660447f20d83ef165cdd0ae Modified Files -------------- src/backend/commands/extension.c | 3 +++ src/test/modules/test_extensions/test_ext3--1.0.sql | 6 ++++++ 2 files changed, 9 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: Ensure commands in extension scripts see the results of precedin @ 2017-05-02 22:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-05-02 22:06 UTC (permalink / raw) To: pgsql-committers Ensure commands in extension scripts see the results of preceding DDL. Due to a missing CommandCounterIncrement() call, parsing of a non-utility command in an extension script would not see the effects of the immediately preceding DDL command, unless that command's execution ends with CommandCounterIncrement() internally ... which some do but many don't. Report by Philippe Beaudoin, diagnosis by Julien Rouhaud. Rather remarkably, this bug has evaded detection since extensions were invented, so back-patch to all supported branches. Discussion: https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d56b8b41b32b3f5c576d6fc2b2c9af3ae4b55511 Modified Files -------------- src/backend/commands/extension.c | 3 +++ src/test/modules/test_extensions/test_ext3--1.0.sql | 6 ++++++ 2 files changed, 9 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: Ensure commands in extension scripts see the results of precedin @ 2017-05-02 22:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-05-02 22:06 UTC (permalink / raw) To: pgsql-committers Ensure commands in extension scripts see the results of preceding DDL. Due to a missing CommandCounterIncrement() call, parsing of a non-utility command in an extension script would not see the effects of the immediately preceding DDL command, unless that command's execution ends with CommandCounterIncrement() internally ... which some do but many don't. Report by Philippe Beaudoin, diagnosis by Julien Rouhaud. Rather remarkably, this bug has evaded detection since extensions were invented, so back-patch to all supported branches. Discussion: https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d0d3a57bfa18a9188378fe2f9bd94eb939c2ee90 Modified Files -------------- src/backend/commands/extension.c | 3 +++ 1 file changed, 3 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: Ensure commands in extension scripts see the results of precedin @ 2017-05-02 22:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-05-02 22:06 UTC (permalink / raw) To: pgsql-committers Ensure commands in extension scripts see the results of preceding DDL. Due to a missing CommandCounterIncrement() call, parsing of a non-utility command in an extension script would not see the effects of the immediately preceding DDL command, unless that command's execution ends with CommandCounterIncrement() internally ... which some do but many don't. Report by Philippe Beaudoin, diagnosis by Julien Rouhaud. Rather remarkably, this bug has evaded detection since extensions were invented, so back-patch to all supported branches. Discussion: https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c6b3d07061b8becc139b7ce854bda3a675e0ee2a Modified Files -------------- src/backend/commands/extension.c | 3 +++ 1 file changed, 3 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: Ensure commands in extension scripts see the results of precedin @ 2017-05-02 22:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-05-02 22:06 UTC (permalink / raw) To: pgsql-committers Ensure commands in extension scripts see the results of preceding DDL. Due to a missing CommandCounterIncrement() call, parsing of a non-utility command in an extension script would not see the effects of the immediately preceding DDL command, unless that command's execution ends with CommandCounterIncrement() internally ... which some do but many don't. Report by Philippe Beaudoin, diagnosis by Julien Rouhaud. Rather remarkably, this bug has evaded detection since extensions were invented, so back-patch to all supported branches. Discussion: https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/062824edd953a5a07fae7400267502d19a8f7bbf Modified Files -------------- src/backend/commands/extension.c | 3 +++ 1 file changed, 3 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: Ensure commands in extension scripts see the results of precedin @ 2017-05-02 22:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2017-05-02 22:06 UTC (permalink / raw) To: pgsql-committers Ensure commands in extension scripts see the results of preceding DDL. Due to a missing CommandCounterIncrement() call, parsing of a non-utility command in an extension script would not see the effects of the immediately preceding DDL command, unless that command's execution ends with CommandCounterIncrement() internally ... which some do but many don't. Report by Philippe Beaudoin, diagnosis by Julien Rouhaud. Rather remarkably, this bug has evaded detection since extensions were invented, so back-patch to all supported branches. Discussion: https://postgr.es/m/2cf7941e-4e41-7714-3de8-37b1a8f74dff@free.fr Branch ------ REL9_2_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/c9d6c564f4b1097846f5810a0ae2b8f6123f9467 Modified Files -------------- src/backend/commands/extension.c | 3 +++ 1 file changed, 3 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-05-02 22:06 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-05-02 22:06 pgsql: Ensure commands in extension scripts see the results of precedin Tom Lane <tgl@sss.pgh.pa.us> 2017-05-02 22:06 pgsql: Ensure commands in extension scripts see the results of precedin Tom Lane <tgl@sss.pgh.pa.us> 2017-05-02 22:06 pgsql: Ensure commands in extension scripts see the results of precedin Tom Lane <tgl@sss.pgh.pa.us> 2017-05-02 22:06 pgsql: Ensure commands in extension scripts see the results of precedin Tom Lane <tgl@sss.pgh.pa.us> 2017-05-02 22:06 pgsql: Ensure commands in extension scripts see the results of precedin Tom Lane <tgl@sss.pgh.pa.us> 2017-05-02 22:06 pgsql: Ensure commands in extension scripts see the results of precedin 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