Allow WITH clauses to be attached to INSERT, UPDATE, DELETE statements.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 07f1264dda0e776a7e329b091c127059bce8cc54
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-10-15T23:55:25Z
Releases: 9.1.0
Allow WITH clauses to be attached to INSERT, UPDATE, DELETE statements.

This is not the hoped-for facility of using INSERT/UPDATE/DELETE inside
a WITH, but rather the other way around.  It seems useful in its own
right anyway.

Note: catversion bumped because, although the contents of stored rules
might look compatible, there's actually a subtle semantic change.
A single Query containing a WITH and INSERT...VALUES now represents
writing the WITH before the INSERT, not before the VALUES.  While it's
not clear that that matters to anyone, it seems like a good idea to
have it cited in the git history for catversion.h.

Original patch by Marko Tiikkaja, with updating and cleanup by
Hitoshi Harada.

Files