From: Robert Haas Date: Wed, 27 Apr 2016 02:56:04 +0000 (-0400) Subject: Fix pg_get_functiondef to dump parallel-safety markings. X-Git-Tag: REL9_6_BETA1~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2ac3be2e763d9b971352819f285dd51519e0aeb9;p=postgresql Fix pg_get_functiondef to dump parallel-safety markings. Ashutosh Sharma --- diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 1b8f0ae597..c1ba3197b2 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -1988,6 +1988,19 @@ pg_get_functiondef(PG_FUNCTION_ARGS) case PROVOLATILE_VOLATILE: break; } + + switch (proc->proparallel) + { + case PROPARALLEL_SAFE: + appendStringInfoString(&buf, " PARALLEL SAFE"); + break; + case PROPARALLEL_RESTRICTED: + appendStringInfoString(&buf, " PARALLEL RESTRICTED"); + break; + case PROPARALLEL_UNSAFE: + break; + } + if (proc->proisstrict) appendStringInfoString(&buf, " STRICT"); if (proc->prosecdef)