Proposed patch for rules with RETURNING

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-patches(at)postgreSQL(dot)org
Subject: Proposed patch for rules with RETURNING
Date: 2006-09-01 23:16:02
Message-ID: 25745.1157152562@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
rule-returning.patch.gz application/octet-stream 6.9 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Jonah H. Harris 2006-09-02 02:20:40 Re: Proposed patch for rules with RETURNING
Previous Message Peter Eisentraut 2006-09-01 22:31:57 Re: Predicate Locking