Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B9C50B5DF3B for ; Wed, 8 Jun 2011 14:38:14 -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 55244-02-3 for ; Wed, 8 Jun 2011 17:38:07 +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.22]) by mail.postgresql.org (Postfix) with SMTP id 23D37B5DF35 for ; Wed, 8 Jun 2011 14:38:06 -0300 (ADT) Received: (qmail invoked by alias); 08 Jun 2011 17:38:03 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp008) with SMTP; 08 Jun 2011 19:38:03 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX19b6Bs+1mFb7Aj63R5h6GgcXAynK16KN8CDM+iFaM 0P5jKcX9xIWRNv 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: Wed, 08 Jun 2011 20:38:00 +0300 Message-ID: <1307554680.9604.0.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/88 X-Sequence-Number: 30467 On ons, 2011-06-08 at 11:09 -0400, Tom Lane wrote: > The omission of collection_type_identifier from the docs is clearly a > doc bug. However, it looks to me like you've identified an error in the > view definition, not only a doc bug. I think the values of the > dtd_identifier and collection_type_identifier columns are swapped, ie, > we ought to be prepending 'a' to the collection_type_identifier not the > dtd_identifier. 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. Yes, we need to switch those two columns around and change the documentation. > If my analysis is correct, we really ought to try to fix this in time > for beta2, since there's no way to fix it without a forced initdb. I can take care of this later today.