Re: Allow an alias for the target table in UPDATE/DELETE - Mailing list pgsql-patches

From Tom Lane
Subject Re: Allow an alias for the target table in UPDATE/DELETE
Date
Msg-id 4664.1137909318@sss.pgh.pa.us
Whole thread Raw
In response to Re: Allow an alias for the target table in UPDATE/DELETE  (Neil Conway <neilc@samurai.com>)
Responses Re: Allow an alias for the target table in UPDATE/DELETE
List pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> Patch applied to HEAD.

This is wrong:

+relation_expr_opt_alias: relation_expr
+                {
+                    $$ = $1;
+                }
+            | relation_expr opt_as IDENT
+                {
+

Should be ColId, not IDENT, per existing alias_clause production.

Also, while I'm all for getting to 100 regression tests, this is a
mighty lame 100th entry.

            regards, tom lane

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: TupleDesc refcounting
Next
From: Neil Conway
Date:
Subject: Re: Allow an alias for the target table in UPDATE/DELETE