From: "Ken Godee" <[EMAIL PROTECTED]> > Not sure if this is what you're trying to do but....... > > "SELECT tablename FROM pg_tables where tablename not like 'pg_%'" > > Will get a list of tables in the db you're connected to. > You can do that, but if by any chance, the pg_catalog schema changes, you may find your app broken. The pg_catalog schema is not really intended to be a client interface, so if you go that way, you may want to wrap it in a function :-)
Now, if you are using PostgreSQL 7.4, use this query instead: select table_name, table_schema from information_schema.tables where table_schema NOT IN ('pg_catalog', 'information_schema'); Best wishes, Chris Travers ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match