Skip to content

Commit 2ac3be2

Browse files
committed
Fix pg_get_functiondef to dump parallel-safety markings.
Ashutosh Sharma
1 parent 213c7df commit 2ac3be2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/backend/utils/adt/ruleutils.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,19 @@ pg_get_functiondef(PG_FUNCTION_ARGS)
19881988
case PROVOLATILE_VOLATILE:
19891989
break;
19901990
}
1991+
1992+
switch (proc->proparallel)
1993+
{
1994+
case PROPARALLEL_SAFE:
1995+
appendStringInfoString(&buf, " PARALLEL SAFE");
1996+
break;
1997+
case PROPARALLEL_RESTRICTED:
1998+
appendStringInfoString(&buf, " PARALLEL RESTRICTED");
1999+
break;
2000+
case PROPARALLEL_UNSAFE:
2001+
break;
2002+
}
2003+
19912004
if (proc->proisstrict)
19922005
appendStringInfoString(&buf, " STRICT");
19932006
if (proc->prosecdef)

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