Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 92983633BED for ; Wed, 30 Dec 2009 19:58:56 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22452-05 for ; Wed, 30 Dec 2009 23:58:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id D2AC3633FB4 for ; Wed, 30 Dec 2009 19:58:45 -0400 (AST) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id nBUNwcL23777; Wed, 30 Dec 2009 15:58:38 -0800 Message-ID: <4B3BE929.9050909@hogranch.com> Date: Wed, 30 Dec 2009 15:58:33 -0800 From: John R Pierce User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: mesued CC: pgsql-jdbc@postgresql.org Subject: Re: metadata as XML References: <0dff9741-dc52-4b94-b7c8-8b92509373ae@u7g2000yqm.googlegroups.com> In-Reply-To: <0dff9741-dc52-4b94-b7c8-8b92509373ae@u7g2000yqm.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 200912/112 X-Sequence-Number: 20193 mesued wrote: > Dear group: > > I've a XML formatted data about quality information of my existing > tables in pg database. Hence, I want to store it onto my pg database > as a table and link it with respective existing table. Secondly, > later, I've to call it from the client (browser) side to enable users > get access to the XML data (to help users read the metadata > information about each table) so, you want a table with (tablename text, xml_metadata xml) ? browsers should under no conditions be connecting directly to your database, so presumably you'd have a function on the webserver side to fetch and pass this data back to the client browser. it seems to me that this metadata is redundant with the information that can be extractd from information_.schema.tables, ,columns, etc and perhaps it would be better to have this web service function build your XML metadata on the fly from the information_schema rather than manually storing it seperately in its own table, as this way the returned data will always be accurate.