From: Tom Lane <tgl@sss.pgh.pa.us>
To: JOE <joe@piscitella.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help with error message
Date: Fri, 25 Oct 2002 10:32:02 -0400
Message-ID: <22903.1035556322@sss.pgh.pa.us> (raw)
In-Reply-To: <010201c279d8$80a97040$c801a8c0@joe>
References: <010201c279d8$80a97040$c801a8c0@joe>
"JOE" <joe@piscitella.com> writes:
> During our load testing we saw the errors below. I believe that the "Sorry=
> , too many clients already" is because we exceeding the max connections to =
> the database.
Check.
> The "Socket command type ' unknown" error I do not understand.
The most likely bet is loss of synchronization between backend and
client. The typical scenario is that the client is sending COPY data
and the server has a problem with some row and errors out. The client
keeps sending COPY data, so the next thing the server gets is more
COPY data instead of the fresh command it's expecting. If the first
character of the additional data is "'" then you'd get the above
message. Is your load testing exercising COPY with bad data?
(Yes, the COPY protocol is misdesigned. We're talking about fixing
that in 7.4.)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, joe@piscitella.com
Subject: Re: Help with error message
In-Reply-To: <22903.1035556322@sss.pgh.pa.us>
References: <010201c279d8$80a97040$c801a8c0@joe> <22903.1035556322@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox