1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-18 12:22:09 +03:00

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

View File

@@ -1988,6 +1988,19 @@ pg_get_functiondef(PG_FUNCTION_ARGS)
case PROVOLATILE_VOLATILE: case PROVOLATILE_VOLATILE:
break; 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) if (proc->proisstrict)
appendStringInfoString(&buf, " STRICT"); appendStringInfoString(&buf, " STRICT");
if (proc->prosecdef) if (proc->prosecdef)