Viacheslav N Tararin <taras(at)dekasoft(dot)com(dot)ua> writes:
> Next rule return 0 as count of changed rows but really at lest one
> record updated and one inserted
In what PG version? There's been substantial fooling-about with the
semantics of returned counts for rules in recent releases.
In any case, you've not provided nearly enough information to let
someone else reproduce the behavior. Please see
http://www.postgresql.org/docs/7.3/static/bug-reporting.html
regards, tom lane