[EMAIL PROTECTED] wrote:
Hi,
I am wondering if anyone can tell me how I can obtain only the list of
data table in postgresql without function and other ancillary tables. I
hope that I can add a tag that can filter only data table.
I am using the following SQL Statement:
"SELECT TABLE_NAME, TABLE_TYPE FROM INFORMATION_SCHEMA.TABLES"
Something like this perhaps?
SELECT * FROM information_schema.tables
WHERE table_schema='public' AND table_type='BASE TABLE';
Of course, you'll probably want to allow for multiple schemas.
--
Richard Huxton
Archonet Ltd
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings