Show owner of types in psql \dT+

This commit is contained in:
Magnus Hagander 2015-04-09 21:39:35 +02:00
parent 5d79b67bdd
commit a6f3c1f1e2

View File

@ -528,6 +528,12 @@ describeTypes(const char *pattern, bool verbose, bool showSystem)
" ) AS \"%s\",\n",
gettext_noop("Elements"));
}
if (verbose)
{
appendPQExpBuffer(&buf,
" pg_catalog.pg_get_userbyid(t.typowner) AS \"%s\",\n",
gettext_noop("Owner"));
}
if (verbose && pset.sversion >= 90200)
{
printACLColumn(&buf, "t.typacl");