Re: Rewriter hook - Mailing list pgsql-hackers

From Jaime Casanova
Subject Re: Rewriter hook
Date
Msg-id CAJKUy5jYCPWwmyFmXNpStE-7-DDGMGrxHLND0caZPMGD=GZU3A@mail.gmail.com
Whole thread Raw
In response to Rewriter hook  (Vlad Arkhipov <arhipov@dc.baikal.ru>)
Responses Re: Rewriter hook
List pgsql-hackers
On Fri, Dec 28, 2012 at 8:36 PM, Vlad Arkhipov <arhipov@dc.baikal.ru> wrote:
>
> Some use cases:
> 1. Complex rules in C language.
> 2. Transforming an original query into a series of queries. For example,
> instead of UPDATE query on a table you may wish to execute UPDATE and INSERT
> into *the same* table.
>

the second one you can do it with a trigger, and i'm pretty sure you
can use triggers to solve most of the problems... what are you trying
to do?

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566         Cell: +593 987171157



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: Rewriter hook
Next
From: Vlad Arkhipov
Date:
Subject: Re: Rewriter hook