Re: Command Triggers - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Command Triggers
Date
Msg-id 201112012157.40912.andres@anarazel.de
Whole thread Raw
In response to Re: Command Triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Command Triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Thursday, December 01, 2011 07:21:25 PM Tom Lane wrote:
> Well, I think the main problem is going to be shunting the query down
> the right parsing track (SELECT versus utility-statement) early enough.
> Making this work cleanly would be a bigger deal than I think you're
> thinking.
Obviously that depends on the definition of clean...

Changing the grammar to make that explicit seems to involve a bit too many 
changes on a first glance. The cheap way out seems to be to make the decision 
in analyze.c:transformQuery.
Would that be an acceptable way forward?

Andres


pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Command Triggers
Next
From: Simon Riggs
Date:
Subject: Re: Command Triggers