Re: is GiST still alive?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: is GiST still alive?
Date: 2003-10-22 21:43:31
Message-ID: 3F96FA03.6040009@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-chat pgsql-hackers

Christopher Browne wrote:

>But I think back to the XML generator I wrote for GnuCash; it has the
>notion of building up a hierarchy of entities and attributes, each of
>which is visible as an identifyable object of some sort. Mapping that
>onto a set of PostgreSQL relations wouldn't work terribly well.
>
>

*nod* I have tried this several times - it just doesn't work well,
because the maps are too different.

You could do something like this:
. a table for each element type, fields being the attributes, plus
the node id.
. a table to tie everything together (parent_id, child_id,
child_order, child_type).
In theory you could even generate the DB schema from an XML schema and
evaluate it with XPath-like expressions.

But why put yourself to such bother? I have never found a good reason to
do this sort of thing.

cheers

andrew

In response to

Responses

Browse pgsql-chat by date

  From Date Subject
Next Message Gregor Zeitlinger 2003-10-22 22:16:21 Re: is GiST still alive?
Previous Message Christopher Browne 2003-10-22 20:48:46 Re: is GiST still alive?

Browse pgsql-hackers by date

  From Date Subject
Next Message Anthony W. Youngman 2003-10-22 21:46:10 Re: Dreaming About Redesigning SQL
Previous Message Christopher Browne 2003-10-22 20:48:46 Re: is GiST still alive?