X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D358E9DCC8F for ; Thu, 15 Dec 2005 19:09:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99939-01 for ; Thu, 15 Dec 2005 19:09:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 382C19DCC84 for ; Thu, 15 Dec 2005 19:09:52 -0400 (AST) Received: by flake.decibel.org (Postfix, from userid 1001) id AA3071528C; Thu, 15 Dec 2005 17:09:54 -0600 (CST) Date: Thu, 15 Dec 2005 17:09:54 -0600 From: "Jim C. Nasby" To: Daniel Ariel Cc: pgsql-interfaces@postgresql.org Subject: Re: Obtaining information on the schema of tables which Message-ID: <20051215230954.GO40699@pervasive.com> References: <20051214173955.GA9238@wolff.to> <22357.1134583686@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 4.11-RELEASE-p10 i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/30 X-Sequence-Number: 5898 On Thu, Dec 15, 2005 at 09:28:15AM +0200, Daniel Ariel wrote: > > I think what he was complaining about was that information_schema > > restricts access to many things unless you are the table owner. > > This is per SQL99, but SQL2003 seems to have relaxed the rules to > > allow you to see info about tables you can access (ie, have nonzero > > rights for). Updating the information_schema to follow the SQL2003 > > rules is on the to-do list, but I dunno if anyone is actively working > > on it. (Peter?) > > Tom's interpretation is correct. > > Is the required work to update to SQL2003 merely an update of the SQL of > the views in information_schema ? If it would expedite matters I would > be willing to help modify the SQL accordingly. Some of the code in http://pgfoundry.org/projects/newsysviews/ might be of use to you... -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461