Re: Getting "timeout expired" error almost immediately (20-200ms)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Eric Brown" <yogieric(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting "timeout expired" error almost immediately (20-200ms)
Date: 2006-06-02 14:04:18
Message-ID: 28055.1149257058@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Eric Brown" <yogieric(at)gmail(dot)com> writes:
> I'm running 8.0.3 on Linux 2.6. Once my application starts to get a bit
> of load, I start getting application exceptions with the "timeout
> expired" string from postgresql. I think it is coming from
> src/interfaces/libpq/fe-misc.c.

I don't think so. libpq only uses a timeout in that function when
it's making a connection to the server and a connect_timeout has been
specified in the connection parameters. You're showing an error that
seems to have occurred on an already-live connection (although maybe
I'm misinterpreting that).

If it is libpq, the answer is you're using an unreasonably tight
connection timeout. But that's hardly an unusual error message;
have you eliminated the possibility it's coming from some other
code entirely?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message brian ally 2006-06-02 14:10:31 Re: Querying for strings that match after prefix
Previous Message Tom Lane 2006-06-02 13:52:58 Re: create view problem