From: | Michael Glaesemann <grzm(at)seespotcode(dot)net> |
---|---|
To: | Joe Conway <mail(at)joeconway(dot)com> |
Cc: | Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Values list-of-targetlists patch for comments (was Re: [PATCHES] |
Date: | 2006-08-02 06:54:00 |
Message-ID: | 1CD9D95B-E824-4A0D-85BB-279AD06B931C@seespotcode.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers pgsql-patches |
On Aug 2, 2006, at 12:47 , Joe Conway wrote:
> regression=# create rule r2 as on update to src do insert into log
> values(old.*, 'old'), (new.*, 'new');
> ERROR: VALUES must not contain OLD or NEW references
>
Would it make sense to add a HINT as well, recommending the UNION
construct Tom mentioned earlier?
On Aug 2, 2006, at 11:52 , Tom Lane wrote:
> create rule r2 as on update to src do
> insert into log select old.*, 'old' union all new.*, 'new';
>
> or just use two separate INSERT commands in the rule.
>
Or is the general case too, uh, general for a HINT?
Michael Glaesemann
grzm seespotcode net
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-08-02 13:30:11 | Re: Values list-of-targetlists patch for comments (was Re: |
Previous Message | Joe Conway | 2006-08-02 05:52:31 | Re: Values list-of-targetlists patch for comments (was Re: |
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2006-08-02 06:58:00 | Re: New variable server_version_num |
Previous Message | Joe Conway | 2006-08-02 05:52:31 | Re: Values list-of-targetlists patch for comments (was Re: |
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2006-08-02 06:58:00 | Re: New variable server_version_num |
Previous Message | Joe Conway | 2006-08-02 05:52:31 | Re: Values list-of-targetlists patch for comments (was Re: |