Hi Mariusz,
MP> Thus there may be two connections (two users) to the template1 database.MP> Just try the same actions with pg_connect.
Thanks, that seems to be the cause of the problem,'cause I got no errors using pg_connect.
Rico