Re: rules and command status question

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Josh Harrison <joshques(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: rules and command status question
Date: 2007-09-25 13:53:06
Message-ID: 20070925135306.GD6440@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Josh Harrison escribió:
> Hello,
> I have a question in the postgres document chapter 34. Rules and Command
> Status.
> The last paragraph of that page says that
>
> "The programmer can ensure that any desired INSTEAD rule is the one that
> sets the command status in the second case, by giving it the alphabetically
> last rule name among the active rules, so that it gets applied last."
>
> Can someone help me understand what this means. How can I change my INSERT
> ...INSTEAD rule so that query returns the number of rows inserted ( instead
> of 0 rows inserted).

You can't.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Siebert 2007-09-25 14:00:06 Porblems migrating a server.
Previous Message Brad Nicholson 2007-09-25 13:40:01 Re: lowering impact of checkpoints