postgresql/src/bin/psql
Bruce Momjian c75d65485d New \d format:
Example:

test=# \d test
     Table "public.test"
 Column |  Type   | Modifiers
--------+---------+-----------
 a      | integer | not null
Indexes:
    "test_pkey" PRIMARY KEY btree (a)
Check Constraints:
    "$2" CHECK (a > 1)
Foreign Key Constraints:
    "$1" FOREIGN KEY (a) REFERENCES parent(b)
Rules:
    myrule AS ON INSERT TO test DO INSTEAD NOTHING
Triggers:
    "asdf asdf" AFTER INSERT OR DELETE ON test FOR EACH STATEMENT EXECUTE
PROCEDURE update_pg_pwd_and_pg_group(),
    mytrigger AFTER INSERT OR DELETE ON test FOR EACH ROW EXECUTE PROCEDURE
update_pg_pwd_and_pg_group()

I have minimised the double quoting of identifiers as much as I could
easily, and I will submit another patch when I have time to work on it that
will use a 'fmtId' function to determine it exactly.

I think it's a significant improvement in legibility...

Obviously the table example above is slightly degenerate in that not many
tables in production have heaps of (non-constraint) triggers and rules.

Christopher Kings-Lynne
2003-03-27 16:57:39 +00:00
..
po Translation updates 2002-10-14 19:04:28 +00:00
.cvsignore
bcc32.mak Attached is a patch to provide makefiles, etc. to allow the compilation 2002-12-30 21:07:26 +00:00
command.c I'm continuing to work on cleaning up code in psql. As things appear 2003-03-20 06:43:35 +00:00
command.h Reset parenthesis level counter upon \r. 2002-03-27 19:16:13 +00:00
common.c Use PQfreemem() consistently, and document its use for Notify. 2003-03-25 02:44:36 +00:00
common.h Remove extern for cancelConn, from Karel Zak 2003-03-20 15:44:17 +00:00
copy.c Here's some changes I made last night to psql's common.c (as found in 2003-03-20 06:00:12 +00:00
copy.h Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
create_help.pl
describe.c New \d format: 2003-03-27 16:57:39 +00:00
describe.h Apply the proper version of Christopher Kings-Lynne's describe patch 2003-01-07 20:56:07 +00:00
help.c Make the printing code somewhat more independent by not relying on 2003-03-18 22:15:44 +00:00
help.h Make the printing code somewhat more independent by not relying on 2003-03-18 22:15:44 +00:00
input.c I'm continuing to work on cleaning up code in psql. As things appear 2003-03-20 06:43:35 +00:00
input.h Here's some changes I made last night to psql's common.c (as found in 2003-03-20 06:00:12 +00:00
large_obj.c I'm continuing to work on cleaning up code in psql. As things appear 2003-03-20 06:43:35 +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 Improve psql comment coding. 2003-03-21 03:28:29 +00:00
mainloop.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
Makefile Assemble portability modules into libpgport library. 2002-07-27 20:10:05 +00:00
mbprint.c Make the printing code somewhat more independent by not relying on 2003-03-18 22:15:44 +00:00
mbprint.h Make the printing code somewhat more independent by not relying on 2003-03-18 22:15:44 +00:00
nls.mk NLS updates, most notably fixed zh_TW translations 2001-11-29 18:59:28 +00:00
print.c Make the printing code somewhat more independent by not relying on 2003-03-18 22:15:44 +00:00
print.h Make the printing code somewhat more independent by not relying on 2003-03-18 22:15:44 +00:00
prompt.c Remove compile warning. 2003-03-20 15:39:53 +00:00
prompt.h New pgindent run with fixes suggested by Tom. Patch manually reviewed, 2001-11-05 17:46:40 +00:00
settings.h Add \timing patch to psql. Times all queries. 2002-03-05 00:01:03 +00:00
sprompt.c Fix off-by-one error in the maxlen parameter handling. 2003-03-18 22:09:37 +00:00
startup.c I'm continuing to work on cleaning up code in psql. As things appear 2003-03-20 06:43:35 +00:00
stringutils.c This patch fixes a bunch of spelling mistakes in comments throughout the 2003-03-10 22:28:22 +00:00
stringutils.h Fix psql's \copy to accept table names containing schemas, as well as 2002-10-19 00:22:14 +00:00
tab-complete.c Attached are two patches for psql's tab-completion.c. 2003-03-27 16:45:01 +00:00
tab-complete.h Another pgindent run. Fixes enum indenting, and improves #endif 2001-10-28 06:26:15 +00:00
variables.c I'm continuing to work on cleaning up code in psql. As things appear 2003-03-20 06:43:35 +00:00
variables.h I'm continuing to work on cleaning up code in psql. As things appear 2003-03-20 06:43:35 +00:00
win32.mak Heres a patch which will create the sql_help.h file on Win32 if it 2002-11-23 04:06:32 +00:00