postgresql/src/bin
Bruce Momjian 1ac7db4468 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
2002-07-20 05:57:31 +00:00
..
initdb pg_cast table, and standards-compliant CREATE/DROP CAST commands, plus 2002-07-18 23:11:32 +00:00
initlocation Update copyright to 2002. 2002-06-20 20:29:54 +00:00
ipcclean Update copyright to 2002. 2002-06-20 20:29:54 +00:00
pg_config Upgrade to Autoconf version 2.53. Replaced many custom macro 2002-03-29 17:32:55 +00:00
pg_ctl Another "$@" cleanup with new syntax, ${1+"$@"}. 2002-07-19 15:31:43 +00:00
pg_dump pg_cast table, and standards-compliant CREATE/DROP CAST commands, plus 2002-07-18 23:11:32 +00:00
pg_encoding pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00
pg_id pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
pgaccess Another "$@" cleanup with new syntax, ${1+"$@"}. 2002-07-19 15:31:43 +00:00
pgtclsh Update copyright to 2002. 2002-06-20 20:29:54 +00:00
psql I can't remember who said they were working on schema related psql 2002-07-20 05:57:31 +00:00
scripts Update copyright to 2002. 2002-06-20 20:29:54 +00:00
Makefile Update copyright to 2002. 2002-06-20 20:29:54 +00:00