postgresql/src/bin/psql
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
..
.cvsignore Add cvs. 1999-12-18 00:34:48 +00:00
command.c I have committed many support files for CREATE CONVERSION. Default 2002-07-18 02:02:30 +00:00
command.h Reset parenthesis level counter upon \r. 2002-03-27 19:16:13 +00:00
common.c Move simple_prompt() into its own file to be shared with psql and pg_dump. 2002-07-06 20:12:30 +00:00
common.h Move simple_prompt() into its own file to be shared with psql and pg_dump. 2002-07-06 20:12:30 +00:00
copy.c Improve COPY syntax to use WITH clause, keep backward compatibility. 2002-06-20 16:00:44 +00:00
copy.h Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
create_help.pl Makefile cleanup for bin and pl subtrees. They should now support 2000-06-27 00:32:06 +00:00
cs.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00
de.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00
describe.c I can't remember who said they were working on schema related psql 2002-07-20 05:57:31 +00:00
describe.h Add psql \dD listing of domains, from Jonathan Eisler. 2002-03-19 02:32:21 +00:00
fr.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00
help.c Fix \? and \pset pager handling. \? wasn't honoring pager before. 2002-07-15 01:56:25 +00:00
help.h Fix \? and \pset pager handling. \? wasn't honoring pager before. 2002-07-15 01:56:25 +00:00
input.c Readline and Zlib now required by default. Add options --without-readline 2002-04-10 22:47:09 +00:00
input.h Readline and Zlib now required by default. Add options --without-readline 2002-04-10 22:47:09 +00:00
large_obj.c Change made to elog: 2002-03-06 06:10:59 +00:00
large_obj.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
mainloop.c Fix some more boundary-case errors in psql variable substitution: 2002-07-03 16:47:46 +00:00
mainloop.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
Makefile Remove certain Makefile dependencies by using full pathnames in 2002-07-15 21:34:05 +00:00
mbprint.c Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
mbprint.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
nls.mk NLS updates, most notably fixed zh_TW translations 2001-11-29 18:59:28 +00:00
print.c The attached patch fixes a tiny memory leak in psql, when using 2002-07-18 04:46:24 +00:00
print.h Fix \? and \pset pager handling. \? wasn't honoring pager before. 2002-07-15 01:56:25 +00:00
prompt.c pgindent run on all C files. Java run to follow. initdb/regression 2001-10-25 05:50:21 +00:00
prompt.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
ru.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00
settings.h Add \timing patch to psql. Times all queries. 2002-03-05 00:01:03 +00:00
sprompt.c Add comments about sharing. 2002-07-06 20:14:58 +00:00
startup.c Remove utils/getopt.c file, not needed, it only allowed "--flag" 2002-07-15 22:48:54 +00:00
stringutils.c The attached patch fixes a minor memory leak in psql. 2002-07-02 05:49:18 +00:00
stringutils.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
sv.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00
tab-complete.c Add SET statement_timeout capability. Timeout is in ms. A value of 2002-07-13 01:02:14 +00:00
tab-complete.h Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
variables.c Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
variables.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
win32.mak Remove compile errors of psql.exe and libpq.dll under 2001-11-22 10:18:52 +00:00
zh_CN.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00
zh_TW.po Update copyright to 2002. 2002-06-20 20:29:54 +00:00