Re: Last gasp

From: Will Crawford <billcrawford1970(at)gmail(dot)com>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Last gasp
Date: 2012-04-10 14:57:55
Message-ID: CAJDxst5PeXMPo0=urdErKAN1=5xuH1L7rMVzPhc12mK+-yE7xA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 6 April 2012 01:19, Noah Misch <noah(at)leadboat(dot)com> wrote:
> On Thu, Apr 05, 2012 at 02:34:30PM -0400, Robert Haas wrote:
>> On Thu, Apr 5, 2012 at 2:23 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> > The FK arrays one I'm kind of queasy about. ?It's a cool-sounding idea
>> > but I'm not convinced that all the corner-case details have been
>> > adequately thought through, and I'm scared of being unable to fix any
>> > such bugs in later versions because of backwards compatibility worries.
>> > It'd be a lot better to be pushing this in at the start of a devel cycle
>> > than the end.
>>
>> I've been feeling that that patch has been suffering from a lack of
>> reviewer attention, which is a real shame, because I think the
>> functionality is indeed really cool.  But I haven't looked at it
>> enough to know what kind of shape it's in.
>
> As the reviewer, I'm not aware of any unexplored corner cases or problems that
> ought to preclude commit.  That said, it is a large patch; I doubt anyone
> could pick it up from scratch and commit it with less than a solid day's
> effort, and 2-3 days might be more likely.  In retrospect, I should have
> suggested splitting the new ON DELETE/ON UPDATE actions into their own patch.
> That would have nicely slimmed the base patch and also isolated it from the ON
> DELETE EACH CASCADE judgement call.

As a likely user of this feature (not sure if this needs a
"disclaimer", but my employer offered a small bounty towards the
development), I'd only need "ON DELETE RESTRICT" behaviour, currently,
and wouldn't ever need "ON UPDATE ..." as the referent column would
always be a SERIAL. In the meantime, I'm pretty sure the restriction
could be handled by a hand-rolled trigger on insert and delete, but
the delete one would be a lot slower without some kind of indexing.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2012-04-10 14:59:16 Re: disposition of remaining patches
Previous Message Michael Meskes 2012-04-10 14:55:01 Re: ECPG FETCH readahead