Re: Command Triggers, patch v11 - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Command Triggers, patch v11
Date
Msg-id CA+Tgmoa5T-WHeLYMKHgfs20GVUDYDcrOA0WzcLtQO=CtM8ZYzg@mail.gmail.com
Whole thread Raw
In response to Re: Command Triggers, patch v11  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Command Triggers, patch v11
List pgsql-hackers
On Sun, Mar 18, 2012 at 2:29 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 1. ExecuteQuery still has to know that's a CREATE TABLE AS operation so
> that it can enforce that the prepared query is a SELECT.  (BTW, maybe
> this should be weakened to "something that returns tuples", in view of
> RETURNING?)

+1 for "something that returns with tuples".   CREATE TABLE ... AS
DELETE FROM ... WHERE ... RETURNING ... seems like a cool thing to
support.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: sortsupport for text
Next
From: Tom Lane
Date:
Subject: Re: Command Triggers, patch v11