Re: rules and rows affected

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Roberto Icardi" <roberto_icardi(at)hotmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: rules and rows affected
Date: 2007-08-30 15:52:08
Message-ID: 1815.1188489128@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Roberto Icardi" <roberto_icardi(at)hotmail(dot)com> writes:
> Everything works perfectly... BUT the query returns always 0 rows affected,
> even if one record is inserted or deleted in friends_hobbies...why??

The rules for this are explained here:
http://www.postgresql.org/docs/8.2/static/rules-status.html

If you're replacing an update with a delete you're not going to get far
with that.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rainer Bauer 2007-08-30 15:54:29 Re: PostgreSQL Conference Fall 2007
Previous Message Joshua D. Drake 2007-08-30 15:38:09 Re: PostgreSQL.Org