Re: Getting::message type 0x43 arrived from server while idle - Mailing list pgsql-admin

From Tom Lane
Subject Re: Getting::message type 0x43 arrived from server while idle
Date
Msg-id 7205.1262205377@sss.pgh.pa.us
Whole thread Raw
In response to Getting::message type 0x43 arrived from server while idle  (Mohammed Rashid <mail4rashid@gmail.com>)
List pgsql-admin
Mohammed Rashid <mail4rashid@gmail.com> writes:
>  I am getting "message type 0x43 arrived from server while idle"  messages
>  while querying the database and getting erroneous results.

> I am using libpq library for querying database.
> I am having two different processes accessing the same database.

I'll bet what you're really doing is using two different threads within
the same process, and trying to have those threads concurrently issue
commands through the same connection (same PGconn object).  This does
not work.  Give each thread its own connection.  Also read
http://www.postgresql.org/docs/8.4/static/libpq-threading.html

            regards, tom lane

pgsql-admin by date:

Previous
From: Mohammed Rashid
Date:
Subject: Getting::message type 0x43 arrived from server while idle
Next
From: "Kevin Grittner"
Date:
Subject: Re: Getting::message type 0x43 arrived from server while idle