pg.ddx.io  pgsql-chat@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kurt at DBC <kurtw@dbc.co.nz>
To: Christopher Browne <cbbrowne@acm.org>
Cc: pgsql-chat@postgresql.org
Subject: Re: [HACKERS] is GiST still alive?
Date: Thu, 23 Oct 2003 16:37:24 +1300
Message-ID: <3F974CF4.90509@dbc.co.nz> (raw)
In-Reply-To: <m37k2wu3yt.fsf@wolfe.cbbrowne.com>
References: <3F96FA03.6040009@dunslane.net>
	<Pine.LNX.4.33.0310230019220.24570-100000@mitte.informatik.hu-berlin.de>
	<m37k2wu3yt.fsf@wolfe.cbbrowne.com>

Christopher Browne wrote:

> No, "tables" wouldn't be the right way to do it.
> 
> But it's going to be troubled, in any case, because of the
> every-popular mixtures of:
>  a) Often weird declarations of what character sets are in use;
>  b) Pointers to other parts of a document;
>  c) What's a "database" going to consist of?  One XML document?  Or
>     many?  And if many, then then how do you have a centralized
>     reference point to navigate from to find the document that you
>     want?
> And "navigate" was a carefully chosen word; what you then have is
> essentially a network database system, and have to then start making
> up ways of describing queries.  XQuery may be better than CODASYL of
> yesteryear, but you're still left writing a lot of recursive code.
> (Thus making those that understand the Lambda Nature more powerful...)
> 
> At the end, do you have a "database?"  Or just a set of documents?
> It's hard to tell, a priori.
> 
[Trimmed comments on utility of such features]

transferred from pgsql-hackers to pgsql-chat.

Coincidentally, just recently looked at Fongs "The design
and implementation of the POSTGRES query optimizer2"  (referenced in the
Developers Guide) which implies that one of the initial goals of
postquel and postgres was to handle similar structures :

"The basic problem here is that the relational model is not well-suited
for representing hierarchical relationships. As a solution, Stonebraker
has proposed embedding queries within data fields and using these
queries to express the hierarchical relationship between the
corresponding tuple and information elsewhere in the database [STON84].
Using this idea, which POSTGRES supports, our complex object example is
now represented as shown in figure 2.5. To retrieve information executed
by the queries embedded within this data field, the user would issue the
following query:

execute (COBJECT.components) where COBJECT.coid = 1.

Thus, n join queries reduce to a single execute query. In addition, 
users can selectively retrieve information
linked through these hierarchies by nesting attributes"

Go's around, comes around.
Cheers, Kurt.




view thread (16+ messages)  latest in thread

Message-ID: <3F974CF4.90509@dbc.co.nz>
Permalink:  ../3F974CF4.90509@dbc.co.nz/
Also on:    postgresql.org/message-id/3F974CF4.90509@dbc.co.nz

 · 

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-chat@postgresql.org
  Cc: kurtw@dbc.co.nz, cbbrowne@acm.org
  Subject: Re: [HACKERS] is GiST still alive?
  In-Reply-To: <3F974CF4.90509@dbc.co.nz>
  References: <3F96FA03.6040009@dunslane.net> <Pine.LNX.4.33.0310230019220.24570-100000@mitte.informatik.hu-berlin.de> <m37k2wu3yt.fsf@wolfe.cbbrowne.com> <3F974CF4.90509@dbc.co.nz>

* 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