pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: pgsql-bugs@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Rikard Pavelic <rikard.pavelic@zg.htnet.hr>
Subject: Re: BUG #5982: recursive type crashes postgres
Date: Fri, 15 Apr 2011 16:27:59 -0500
Message-ID: <4DA8720F020000250003C8D5@gw.wicourts.gov> (raw)
In-Reply-To: <BANLkTin2ud7LiKcKCs-USkXdnKnn2b+SqA@mail.gmail.com>
References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org>
	<BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com>
	<28780.1302894395@sss.pgh.pa.us>
	<4DA8AAD7.9000606@zg.htnet.hr>
	<4DA86904020000250003C8CD@gw.wicourts.gov>
	<BANLkTin2ud7LiKcKCs-USkXdnKnn2b+SqA@mail.gmail.com>

Merlin Moncure <mmoncure@gmail.com> wrote:
 
> There are lots of use cases for this.  I use composite types to
> marshal data to the client all the time, and recursive structures
> are fairly common in many classic problems.  Recursive composites
> fit the bill perfectly.
 
I'm trying to get my head around why SQL composite types are a good
way to marshal complex object graphs with recursion.  I can see
where it could be done, I'm still not convinced that it's better
than SQL passing out data in tabular form with relationship
established by matching values.  In other words, when is it a good
idea to do the relation to object mapping in the database engine?
 
-Kevin



view thread (12+ messages)  latest in thread

Message-ID: <4DA8720F020000250003C8D5@gw.wicourts.gov>
Permalink:  ../4DA8720F020000250003C8D5@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DA8720F020000250003C8D5@gw.wicourts.gov

 · 

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-bugs@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, mmoncure@gmail.com, tgl@sss.pgh.pa.us, rikard.pavelic@zg.htnet.hr
  Subject: Re: BUG #5982: recursive type crashes postgres
  In-Reply-To: <4DA8720F020000250003C8D5@gw.wicourts.gov>
  References: <201104151834.p3FIYSQ0067290@wwwmaster.postgresql.org> <BANLkTikVekidaty3_CczUKBYxhkqYiq1QA@mail.gmail.com> <28780.1302894395@sss.pgh.pa.us> <4DA8AAD7.9000606@zg.htnet.hr> <4DA86904020000250003C8CD@gw.wicourts.gov> <BANLkTin2ud7LiKcKCs-USkXdnKnn2b+SqA@mail.gmail.com> <4DA8720F020000250003C8D5@gw.wicourts.gov>

* 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