KaiGai Kohei <kai...@ak.jp.nec.com> writes: > It seems to me the query should be fixed up as follows:
> : > WHERE > d.classoid = (SELECT oid FROM pg_class WHERE relname = 'pg_largeobject' > AND relnamespace = (SELECT oid FROM pg_namespace > WHERE nspname = 'pg_catalog')) > : Actually, the preferred way to spell that sort of thing is WHERE d.classoid = 'pg_catalog.pg_largeobject'::regclass which is not only shorter but orders of magnitude more efficient. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers