pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: mesued <mesued@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: metadata as XML
Date: Wed, 30 Dec 2009 15:58:33 -0800
Message-ID: <4B3BE929.9050909@hogranch.com> (raw)
In-Reply-To: <0dff9741-dc52-4b94-b7c8-8b92509373ae@u7g2000yqm.googlegroups.com>
References: <0dff9741-dc52-4b94-b7c8-8b92509373ae@u7g2000yqm.googlegroups.com>

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.





view thread (3+ messages)

Message-ID: <4B3BE929.9050909@hogranch.com>
Permalink:  ../4B3BE929.9050909@hogranch.com/
Also on:    postgresql.org/message-id/4B3BE929.9050909@hogranch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pierce@hogranch.com, mesued@gmail.com
  Subject: Re: metadata as XML
  In-Reply-To: <4B3BE929.9050909@hogranch.com>
  References: <0dff9741-dc52-4b94-b7c8-8b92509373ae@u7g2000yqm.googlegroups.com> <4B3BE929.9050909@hogranch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox