Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EA30A634567 for ; Thu, 2 Sep 2010 02:55:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 14106-01 for ; Thu, 2 Sep 2010 05:54:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cascavel.ensmp.fr (cascavel.ensmp.fr [194.214.158.227]) by mail.postgresql.org (Postfix) with ESMTP id F02A5632BC7 for ; Thu, 2 Sep 2010 02:54:53 -0300 (ADT) Received: from cri.ensmp.fr (85.40.219-88.rev.gaoland.net [88.219.40.85] (may be forged)) (authenticated bits=0) by cascavel.ensmp.fr (8.14.3/8.14.3/JMMC-11/Mar/2010) with ESMTP id o825skXS001710 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Sep 2010 07:54:51 +0200 (MEST) Date: Thu, 2 Sep 2010 07:54:46 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@localhost.localdomain Reply-To: Fabien COELHO To: Peter Eisentraut cc: PostgreSQL Bugs List Subject: Re: issue about information_schema REFERENTIAL_CONSTRAINTS In-Reply-To: <1283369900.15386.0.camel@vanquo.pezone.net> Message-ID: References: <2683.1283266019@sss.pgh.pa.us> <1283369900.15386.0.camel@vanquo.pezone.net> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 X-Miltered: at cascavel with ID 4C7F3C26.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4C7F3C26.000 from [88.219.40.85]/85.40.219-88.rev.gaoland.net/88.219.40.85/cri.ensmp.fr/ X-Scores-Stats: 4C7F3C26.000 B=0.00895 L=0.23398 G=0.00275 Agree X-j-chkmail-Score: MSGID : 4C7F3C26.000 on cascavel.ensmp.fr : j-chkmail score : . : R=. U=. O=. B=0.003 -> S=0.003 X-j-chkmail-Status: Ham X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-5 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Archive-Number: 201009/7 X-Sequence-Number: 27971 Dear Peter, >> I'm suggesting uniqueness in the "information_schema", which can be >> provided independently by some tweaking in the view construction, I >> think, for instance by adding the oid of the constraint or maybe the >> table_name. > > The view is defined by the SQL standard. No. The result of the view (the definition of the expected attributes) is defined in the standard. But it is really a view on top of "pg_catalog". You are right that some views of the information_schema are defined in the standard, but they deal with restrictions of other relations, say the privileges for the current user... > We cannot change it. Yes we can! It, it is 100% postgresql: \d information_schema.referential_constraints View "information_schema.referential_constraints" ... FROM pg_namespace ncon JOIN pg_constraint con ON ncon.oid = con.connamespace JOIN pg_class c ON con.conrelid = c.oid -- Fabien Coelho - CRI, Maths & Systèmes, MINES ParisTech From pgsql-bugs-owner@postgresql.org Thu Sep 2 07:41:38 2010 Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 16994632AF0 for ; Thu, 2 Sep 2010 07:41:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 81079-04 for ; Thu, 2 Sep 2010 10:41:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 598D2632A2B for ; Thu, 2 Sep 2010 07:41:37 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id o82AfXM0085948 for ; Thu, 2 Sep 2010 10:41:33 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id o82AfX1n085947; Thu, 2 Sep 2010 10:41:33 GMT (envelope-from www) Date: Thu, 2 Sep 2010 10:41:33 GMT Message-Id: <201009021041.o82AfX1n085947@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5636: extra "(" or missing ")" From: "KOIZUMI Satoru" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201009/8 X-Sequence-Number: 27972 The following bug has been logged online: Bug reference: 5636 Logged by: KOIZUMI Satoru Email address: koizumistr@minos.ocn.ne.jp PostgreSQL version: 9.0RC1 Operating system: MacOS X Description: extra "(" or missing ")" Details: At 33.8.5. The decimal type of PostgreSQL 9.0RC1 Documentation, "(" is before "by means". But there is no ")". | the decimal type can be created either on the stack | or on the heap (by means of the functions | PGTYPESdecimal_new() and PGTYPESdecimal_free(). Maybe "(" is not needed or ")" is needed after "PGTYPESdecimal_free()".