Fix pg_get_functiondef to dump parallel-safety markings.
Ashutosh Sharma
This commit is contained in:
parent
213c7df033
commit
2ac3be2e76
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue