From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Mark Reid <mark(at)markreid(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: manually setting the command tag (was Re: 8.4: suppress_redundant_updates trigger vs. "Upsert" logic) |
Date: | 2009-09-07 22:45:27 |
Message-ID: | 20090907224527.GQ8894@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs pgsql-hackers |
Pavel Stehule escribió:
> 2009/9/7 Alvaro Herrera <alvherre(at)commandprompt(dot)com>:
> > There are countless reports of trouble because somebody has an INSTEAD
> > rule in the table, and the tag emits something that's not quite
> > acceptable for some outer software layer. The problem is that there's
> > no way at all to make the command tag behave!
> >
> > For example, we could offer a new SPI function, say SPI_settag(), which
> > sets the command tag string. PL/pgSQL could expose this via a new
> > command, for example COMMANDTAG.
>
> Isn't better to solve the the correct diagnostics for INSTEAD rules or triggers?
As far as I can tell it's not possible to do better without letting the
user put their hands on the tag. The problem is figuring out what
command should determine the tag.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-09-07 23:10:05 | Re: manually setting the command tag (was Re: 8.4: suppress_redundant_updates trigger vs. "Upsert" logic) |
Previous Message | Pavel Stehule | 2009-09-07 22:23:13 | Re: manually setting the command tag (was Re: 8.4: suppress_redundant_updates trigger vs. "Upsert" logic) |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2009-09-07 22:52:23 | Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem |
Previous Message | Tom Lane | 2009-09-07 22:40:31 | Re: [Pgbuildfarm-members] Snow Leopard bison/flex build problem |