mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Fix pg_get_functiondef to dump parallel-safety markings.
Ashutosh Sharma
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user