Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id E969AB5DBB6 for ; Thu, 9 Jun 2011 12:00:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 07693-02-6 for ; Thu, 9 Jun 2011 15:00:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id 91ADEB5DD43 for ; Thu, 9 Jun 2011 12:00:34 -0300 (ADT) Received: (qmail invoked by alias); 09 Jun 2011 15:00:32 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp069) with SMTP; 09 Jun 2011 17:00:32 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX1+uRkIDL1OuDtVPFCkB+Z30N3D3PqCGfjAeiMS0l+ pt17lgY0vY9UdY Subject: Re: BUG #5926: information schema dtd_identifier for element_types, columns, parameters views inconsistent From: Peter Eisentraut To: Tom Lane Cc: Susanne Ebrecht , Ingmar Brouns , pgsql-bugs@postgresql.org In-Reply-To: <9773.1307545767@sss.pgh.pa.us> References: <201103111318.p2BDITcL034900@wwwmaster.postgresql.org> <4DDCE812.10401@2ndQuadrant.com> <9773.1307545767@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Date: Thu, 09 Jun 2011 18:00:30 +0300 Message-ID: <1307631630.24477.8.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/90 X-Sequence-Number: 30469 On ons, 2011-06-08 at 11:09 -0400, Tom Lane wrote: > As far as I can tell from the spec, dtd_identifier > ought to be the identifier of the element type, while > collection_type_identifier should be a made-up identifier for the > array type. That would make the sample query given in the docs > correct. But it's collection_type_identifier that you join against, say, columns, so you can resolve the element type of column types. So collection_type_identifier must match the dtd_identifier schema of columns etc., whereas element_types.dtd_identifier is not joinable against anything.