Proposed patch for rules with RETURNING - Mailing list pgsql-patches

From Tom Lane
Subject Proposed patch for rules with RETURNING
Date
Msg-id 25745.1157152562@sss.pgh.pa.us
Whole thread Raw
Responses Re: Proposed patch for rules with RETURNING  ("Jonah H. Harris" <jonah.harris@gmail.com>)
List pgsql-patches
Attached is a draft patch that makes rules support RETURNING as per my
proposal of earlier today, ie, have the rewriter automatically adjust a
RETURNING clause present in an unconditional INSTEAD rule.  The core of
the patch is barely twenty lines (the code added to rewriteRuleAction)
--- the rest is error checking to reject invalid rules.

Comments, objections?

            regards, tom lane

Attachment

pgsql-patches by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: [DOCS] Predicate Locking
Next
From: "Jonah H. Harris"
Date:
Subject: Re: Proposed patch for rules with RETURNING