postgresql/src/test/modules/worker_spi
Tom Lane 88103567cb Disallow setting bogus GUCs within an extension's reserved namespace.
Commit 75d22069e tried to throw a warning for setting a custom GUC whose
prefix belongs to a previously-loaded extension, if there is no such GUC
defined by the extension.  But that caused unstable behavior with
parallel workers, because workers don't necessarily load extensions and
GUCs in the same order their leader did.  To make that work safely, we
have to completely disallow the case.  We now actually remove any such
GUCs at the time of initial extension load, and then throw an error not
just a warning if you try to add one later.  While this might create a
compatibility issue for a few people, the improvement in error-detection
capability seems worth it; it's hard to believe that there's any good
use-case for choosing such GUC names.

This also un-reverts 5609cc01c (Rename EmitWarningsOnPlaceholders() to
MarkGUCPrefixReserved()), since that function's old name is now even
more of a misnomer.

Florin Irion and Tom Lane

Discussion: https://postgr.es/m/1902182.1640711215@sss.pgh.pa.us
2022-02-21 14:10:43 -05:00
..
expected Increase test coverage for worker_spi by ∞% 2019-06-02 00:29:49 -04:00
sql Increase test coverage for worker_spi by ∞% 2019-06-02 00:29:49 -04:00
.gitignore worker_spi needs a .gitignore file now. 2019-06-02 11:13:23 -04:00
dynamic.conf Increase test coverage for worker_spi by ∞% 2019-06-02 00:29:49 -04:00
Makefile Increase test coverage for worker_spi by ∞% 2019-06-02 00:29:49 -04:00
worker_spi--1.0.sql Move test modules from contrib to src/test/modules 2014-11-29 23:55:00 -03:00
worker_spi.c Disallow setting bogus GUCs within an extension's reserved namespace. 2022-02-21 14:10:43 -05:00
worker_spi.control Move test modules from contrib to src/test/modules 2014-11-29 23:55:00 -03:00