Re: Call for Google Summer of Code mentors, admins

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: David Fetter <david(at)fetter(dot)org>, Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, PostgreSQL Advocacy <pgsql-advocacy(at)postgresql(dot)org>
Subject: Re: Call for Google Summer of Code mentors, admins
Date: 2013-04-09 16:39:52
Message-ID: 1365525592.75858.YahooMailNeo@web162906.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-advocacy pgsql-hackers

David Fetter <david(at)fetter(dot)org> wrote:
> On Tue, Apr 09, 2013 at 10:22:20AM +0200, Dimitri Fontaine wrote:
>> David Fetter <david(at)fetter(dot)org> writes:

>>>>> UPDATE ... RETURNING OLD

>>> There are several more DML operations with odd inability to
>>> return rows, but UPDATE's the one that really stands out, and
>>> is a bite-sized chunk in the sense of having a relatively small
>>> scope of design and not touching parts of the system unless
>>> they use the new grammar.
>>
>> Which makes me think about having OLD and NEW "relations"
>> available in per statement triggers, too. Would that be a SoC
>> sized projects? Maybe if the relation is simply a SRF…
>
> Are you envisioning this as a common infrastructure to both?

This may also wind up sharing some infrastructure with incremental
mainenance of materialized views.  The most efficient and provably
correct optimization of that I've found in the literature[1] seems
to me to require the ability to accumulate "delta relations", and
it has been occuring to me how easy it would be to use a delta
relation for a statement to supply the OLD and NEW relations for an
FOR EACH STATEMENT trigger.

I don't really want to get into a design discussion about
incremental maintenance of matviews at this time, but felt that I
should give a "heads up" about potentially overlapping work.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

[1]  http://dl.acm.org/citation.cfm?id=170066&dl=ACM&coll=DL&CFID=202507837&CFTOKEN=96875563

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Joshua D. Drake 2013-04-09 16:46:02 Re: Heroku early upgrade is raising serious questions
Previous Message Stephen Frost 2013-04-09 16:29:37 Re: Heroku early upgrade is raising serious questions

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2013-04-09 16:42:40 Re: page 1 of relation global/11787 was uninitialized
Previous Message Tom Lane 2013-04-09 16:36:03 Re: [HACKERS] pgsql: Add sql_drop event for event triggers