Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0UNDrl39795 for ; Wed, 30 Jan 2002 18:13:53 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g0UND7f27530; Wed, 30 Jan 2002 18:13:07 -0500 (EST) To: Hiroshi Inoue cc: Bill Studenmund , Peter Eisentraut , PostgreSQL Development Subject: Re: RFD: schemas and different kinds of Postgres objects In-reply-to: <3C573C5E.F01B48C2@tpf.co.jp> References: <3C573C5E.F01B48C2@tpf.co.jp> Comments: In-reply-to Hiroshi Inoue message dated "Wed, 30 Jan 2002 09:20:46 +0900" Date: Wed, 30 Jan 2002 18:13:06 -0500 Message-ID: <27527.1012432386@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200201/1351 X-Sequence-Number: 18311 Hiroshi Inoue writes: > Bill Studenmund wrote: >> While we may have not been using the terminology of the spec, I think we >> have been talking about schema paths from SQL99. >> >> One difference between our discussions and SQL99 I've noticed is that >> we've spoken of having the path find functions (and operators and >> aggregates), types, _and_tables_. > My understanding is the same. > Tom, Peter is it right ? SQL99's SQL-path is very clearly stated to be used only for looking up routines and user-defined type names. Extending it to cover tables, operators, and so forth makes sense to me, but we have to recognize that it is a spec extension and therefore not all the answers we need can be found in the spec. I also find it curious that they exclude standard type names from the search path. It would seem obvious to treat the standard type names as included in a schema that is part of the search path, but AFAICT this is not done in the spec. Postgres *has to* do it that way, however, or give up our whole approach to datatypes; surely we don't want to hardwire the SQL-standard datatypes into the parser to the exclusion of the not-so-standard ones. IMHO, the spec's artificial distinction between system and user types limits its usefulness as a guide to the questions we're debating here. regards, tom lane