postgresql/src
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
..
backend Add new files. 2003-03-27 16:53:15 +00:00
bin New \d format: 2003-03-27 16:57:39 +00:00
corba Convert files from DOS format to normal text. 2000-12-03 14:43:59 +00:00
data I've sent 3 mails to pgsql-patches. There are two files, one for doc 1999-08-16 20:27:19 +00:00
include Add new file. 2003-03-27 16:55:11 +00:00
interfaces More changes to pgtypeslib and set optimization to -O1. 2003-03-27 14:29:17 +00:00
makefiles Make "win" a separate port from "cygwin". This means you can now 2003-03-21 17:18:34 +00:00
pl This patch implements holdable cursors, following the proposal 2003-03-27 16:51:29 +00:00
port Back out flockfile change for NetBSD. Giles Lean reports they are not 2003-01-11 19:38:23 +00:00
template Make "win" a separate port from "cygwin". This means you can now 2003-03-21 17:18:34 +00:00
test This patch implements holdable cursors, following the proposal 2003-03-27 16:51:29 +00:00
tools Update release steps. 2003-01-29 03:41:54 +00:00
tutorial Assorted fixes for Cygwin: 2002-09-05 18:28:46 +00:00
utils Re-add Win32 missing files, I think. 2002-11-02 02:00:35 +00:00
bcc32.mak Attached is a patch to provide makefiles, etc. to allow the compilation 2002-12-30 21:07:26 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
Makefile Assorted fixes for Cygwin: 2002-09-05 18:28:46 +00:00
Makefile.global.in Enable IPv6 connections to the server, and add pg_hba.conf IPv6 entries 2003-01-06 03:18:27 +00:00
Makefile.shlib Make "win" a separate port from "cygwin". This means you can now 2003-03-21 17:18:34 +00:00
nls-global.mk Avoid shell syntax error if list of languages is empty. 2002-09-02 22:19:42 +00:00
win32.mak Remove all traces of multibyte and locale options. Clean up comments 2002-09-03 21:45:44 +00:00