dzolotarevskiy(at)gmail(dot)com writes:
> All queries works fine when there is only one session. When Sessions more
> then 20 it starts terminating with some probability.
> On my production server it stops about 50 times per day.
> On my dev pc, with testing utility that uses 50 sessions at one time, it
> falls down in about 1 minute.
> Investigating problem i have found the "fatal" query and excluding part by
> part found out that new syntax produce that exception.
I believe this is an already-known issue:
http://archives.postgresql.org/pgsql-bugs/2012-01/msg00157.php
It will be fixed in next week's update releases.
regards, tom lane