Commit 2ac3be2e authored by Robert Haas's avatar Robert Haas

Fix pg_get_functiondef to dump parallel-safety markings.

Ashutosh Sharma
parent 213c7df0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment