diff options
| author | Tom Lane | 2007-03-26 16:58:41 +0000 |
|---|---|---|
| committer | Tom Lane | 2007-03-26 16:58:41 +0000 |
| commit | 55a7cf80a0769d38f03bd728717da855902041b1 (patch) | |
| tree | 147a3aa02b95844de61c869232c2dbe802914e67 /src/backend/tcop | |
| parent | 66daeb074b3fbdb071a5631c066f5e41d554220e (diff) | |
Allow non-superuser database owners to create procedural languages.
A DBA is allowed to create a language in his database if it's marked
"tmpldbacreate" in pg_pltemplate. The factory default is that this is set
for all standard trusted languages, but of course a superuser may adjust
the settings. In service of this, add the long-foreseen owner column to
pg_language; renaming, dropping, and altering owner of a PL now follow
normal ownership rules instead of being superuser-only.
Jeremy Drake, with some editorialization by Tom Lane.
Diffstat (limited to 'src/backend/tcop')
| -rw-r--r-- | src/backend/tcop/utility.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c index be274a72f10..daf23fd0fe5 100644 --- a/src/backend/tcop/utility.c +++ b/src/backend/tcop/utility.c @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.274 2007/03/13 00:33:42 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.275 2007/03/26 16:58:39 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1551,6 +1551,9 @@ CreateCommandTag(Node *parsetree) case OBJECT_FUNCTION: tag = "ALTER FUNCTION"; break; + case OBJECT_LANGUAGE: + tag = "ALTER LANGUAGE"; + break; case OBJECT_OPERATOR: tag = "ALTER OPERATOR"; break; |
