Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ac3be2

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

File tree

Expand file treeCollapse file tree

1 file changed

+13
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-0
lines changed

‎src/backend/utils/adt/ruleutils.c

Copy file name to clipboardExpand all lines: src/backend/utils/adt/ruleutils.c
+13Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.