Allow non-superuser database owners to create procedural languages.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 55a7cf80a0769d38f03bd728717da855902041b1
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-03-26T16:58:41Z
Releases: 8.3.0
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.

Files