Fix pg_get_functiondef to dump parallel-safety markings.

Ashutosh Sharma
This commit is contained in:
Robert Haas 2016-04-26 22:56:04 -04:00
parent 213c7df033
commit 2ac3be2e76
1 changed files with 13 additions and 0 deletions

View File

@ -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)