From: | Colm McCartan <colmm(at)owl(dot)co(dot)uk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Two very basic questions.. |
Date: | 2001-12-06 15:18:49 |
Message-ID: | 3C0F8C59.7040703@owl.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks for the responses. Heres a summary:
>>- how do I see details of the various constraints (e.g foreign keys) in
>>psql client? Am I looking at a system-table query?
>>
> Yes, all the data is in system tables.
> The developers manual has info on the contents of the system tables:
> http://www.postgresql.org/idocs/index.php?catalogs.html
> You can also try using psql -E to see what queries the
> \*-commands (eg. \dv) generate.
Probably the most useful source on this is the link I found on the
Non-FAQ technical docs for postgres:
http://techdocs.postgresql.org/redir.php?link=/techdocs/hackingreferentialintegrity.php
This points out that foreign keys are just specialised constraints and
gives a few useful queries and views for inspecting and altering them.
>>- Er, what can I use as a comment character in a sql file? Multiple
>>hashmarks seem to cause parse errors
>>
>
> You can have two kinds of comments:
> -- single line comments
> /* and
> multiline comments */
>
> - Einar Karttunen
Thanks again.
colm
From | Date | Subject | |
---|---|---|---|
Next Message | Ben-Nes Michael | 2001-12-06 15:25:52 | Type POINT and index |
Previous Message | Hauke de Vries | 2001-12-06 15:07:14 | Access and Boolean |