Skip to content

Commit 290e3b7

Browse files
committed
Mark pg_config() stable rather than immutable
pg_config() has been marked immutable since its inception. As part of a larger discussion around the definition of immutable versus stable and related implications for marking functions parallel safe raised by Andres, the consensus was clearly that pg_config() is stable, since it could possibly change output even for the same minor version with a recompile or installation of a new binary. So mark it stable. Theoretically this could/should be backpatched, but it was deemed to be not worth the effort since in practice this is very unlikely to cause problems in the real world. Discussion: https://postgr.es/m/20181126234521.rh3grz7aavx2ubjv@alap3.anarazel.de
1 parent 69e5247 commit 290e3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/include/catalog/pg_proc.dat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10433,7 +10433,7 @@
1043310433

1043410434
# pg_config
1043510435
{ oid => '3400', descr => 'pg_config binary as a function',
10436-
proname => 'pg_config', prorows => '23', proretset => 't', proparallel => 'r',
10436+
proname => 'pg_config', provolatile => 's', prorows => '23', proretset => 't', proparallel => 'r',
1043710437
prorettype => 'record', proargtypes => '', proallargtypes => '{text,text}',
1043810438
proargmodes => '{o,o}', proargnames => '{name,setting}',
1043910439
prosrc => 'pg_config' },

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy