Do you really need to query the catalogues ? That on its own is not a good idea if you want something to run fast and frequently.
-- GJ -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance