Re: Help with error message

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "JOE" <joe(at)piscitella(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Help with error message
Date: 2002-10-25 14:32:02
Message-ID: 22903.1035556322@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"JOE" <joe(at)piscitella(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message rolf.ostvik 2002-10-25 15:40:31 Re: Errors in messages file
Previous Message Tom Lane 2002-10-25 14:25:41 Re: How can I retrieve an info about function arguments ?