Commit a6f3c1f1 authored by Magnus Hagander's avatar Magnus Hagander

Show owner of types in psql \dT+

parent 5d79b67b
...@@ -528,6 +528,12 @@ describeTypes(const char *pattern, bool verbose, bool showSystem) ...@@ -528,6 +528,12 @@ describeTypes(const char *pattern, bool verbose, bool showSystem)
" ) AS \"%s\",\n", " ) AS \"%s\",\n",
gettext_noop("Elements")); 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) if (verbose && pset.sversion >= 90200)
{ {
printACLColumn(&buf, "t.typacl"); printACLColumn(&buf, "t.typacl");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment