Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 758CC4764E1 for ; Fri, 3 Jan 2003 16:39:27 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id C467E476417 for ; Fri, 3 Jan 2003 16:39:26 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h03Lcg0U011663; Fri, 3 Jan 2003 16:38:42 -0500 (EST) To: Bruce Momjian Cc: Hiroshi Inoue , Jim Holliday , pgsql-odbc@postgresql.org Subject: Re: bug in info.c file - incorrect SQL In-reply-to: <200301032117.h03LHCX10106@candle.pha.pa.us> References: <200301032117.h03LHCX10106@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 03 Jan 2003 16:17:12 -0500" Date: Fri, 03 Jan 2003 16:38:42 -0500 Message-ID: <11662.1041629922@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/20 X-Sequence-Number: 2519 Bruce Momjian writes: > The attached patch fixes this by creating a pn1 and pn2 alias for > pg_namespace in FROM. It also improves some of the alias tags. Applied > to ODBC CVS. Can someone run some tests on these? I see another bug here: The 7.3-and-up versions of these queries should explicitly prefix "pg_catalog." to the names of all system catalogs (and types and functions) they reference. This will make them bulletproof against conflicts against user-defined names, which might appear in front of the system names in the search path. regards, tom lane