Skip site navigation (1) Skip section navigation (2)

Problem: message type 0xxx arrived from server while idle

From: Keatis <yux(at)mail(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: Problem: message type 0xxx arrived from server while idle
Date: 2005-04-28 20:52:21
Message-ID: 24325720.20050429005221@mail.ru (view raw or flat)
Thread:
Lists: 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 \(at)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...


Responses

pgsql-general by date

Next:From: Shelby CainDate: 2005-04-28 21:58:17
Subject: Increasing statistics results in worse estimates
Previous:From: Matko AndjelinicDate: 2005-04-28 20:37:47
Subject: oid or schema name of current plpgsql function

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group