diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-07-20 05:57:31 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-07-20 05:57:31 +0000 |
commit | 1ac7db4468e1989ea7c775ad786468b7fd3baa4e (patch) | |
tree | c0c99b4d155dd4c70944aa5dd6aea1dcad6aecd7 /src/backend/commands/explain.c | |
parent | 1ce03603ccc690c07987a64cbc2b53391c51f083 (diff) | |
download | postgresql-1ac7db4468e1989ea7c775ad786468b7fd3baa4e.tar.gz postgresql-1ac7db4468e1989ea7c775ad786468b7fd3baa4e.zip |
I can't remember who said they were working on schema related psql
changes, but I kept finding myself wishing I could see what schema a
table or view exists in when I use \dt, \dv, etc. So, here is a patch
which does just that.
It sorts on "Schema" first, and "Name" second.
It also changes the test for system objects to key off the namespace
name starting with 'pg_' instead of the object name.
Sample output:
test=# create schema testschema;
CREATE SCHEMA
test=# create view testschema.ts_view as select 1;
CREATE VIEW
test=# \dv
List of relations
Name | Schema | Type | Owner
--------------------+------------+------+----------
__testpassbyval | public | view | postgres
fooview | public | view | postgres
master_pg_proc | public | view | postgres
rmt_pg_proc | public | view | postgres
vw_dblink_get_pkey | public | view | postgres
vw_dblink_replace | public | view | postgres
ts_view | testschema | view | postgres
(7 rows)
Joe Conway
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions