Problem: message type 0xxx arrived from server while idle - Mailing list pgsql-general

From Keatis
Subject Problem: message type 0xxx arrived from server while idle
Date
Msg-id 24325720.20050429005221@mail.ru
Whole thread Raw
Responses Re: Problem: message type 0xxx arrived from server while idle  (Michael Fuhr <mike@fuhr.org>)
List pgsql-general
Hello, i've encountered such problem:

i'm using PostgreSQL 7.4 (though problem applies to 8.0 too) on FreeBSD 5.2.1 with Apache 1.3.31 (DBI 1.43 and DBD-Pg
1.32).

I have, lets say Module.pm with such function:
sub get_users{
 my @res;
 #$dbh is defined in other module, but is visible and valid here.
 my $sth = $dbh->prepare("SELECT * FROM users where nick like '...' and passwd like '...'");
 $sth->execute;
 while(my $href = $sth->fetchrow_hashref){
  push @res, $href;
 }
return \@res;
}

And I have some script, which dynamically outputs web-page content and have get_user function call.

If i update that page in browser too fast, then web server seems to hang up.
And it looks much like a problem with postgresql happened. In my apache's log i can see

message type 0x54 arrived from server while idle
message type 0x44 arrived from server while idle
message type 0x43 arrived from server while idle
message type 0x5a arrived from server while idle

Message "message type 0x44 ..." could repeat for 2-20 times.

The same could be archieved if i will put in my script two sequent calls of get_user function, e.g.

print "Content-Type: text/html\n\n";

print <some_html_stuff>;
get_user();
get_user();
print <some_html_stuff>;

Actually i don't know, but i think this can also happen when two or more users request this page simultaneously.

What are those error messages and what do they mean?
How can i get rid of them?
Once this problem occurs, the rest of the website stops working... (though restarting apache can help, but it is not a
solution).


Setting
log_statement=yes;
log_error_verbosity = verbose;
and other log_* vars to debug5
in postresql.conf didn't gave any comprehensive answer in pgsql's log file.

All sql statements executed - are 100% correct and have been tested many times.

Thanks in advance for any idea...


pgsql-general by date:

Previous
From: elein@varlena.com (elein)
Date:
Subject: casting unnamed row types
Next
From: fisher@wckp.lodz.pl (fisher)
Date:
Subject: temp tables ORACLE/PGSQL