Re: Command Triggers
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dimitri Fontaine <dimitri@2ndquadrant.fr>,
pgsql-hackers@postgresql.org
Date: 2011-12-01T20:57:40Z
Lists: 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