Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9EFB964FCF9 for ; Thu, 18 Sep 2008 18:06:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28279-01 for ; Thu, 18 Sep 2008 18:05:40 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by postgresql.org (Postfix) with ESMTP id F292664FCCF for ; Thu, 18 Sep 2008 18:00:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mx3.hub.org (Postfix) with ESMTP id 37A3E37B8E0 for ; Thu, 18 Sep 2008 18:00:40 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m8IKvUFO002080; Thu, 18 Sep 2008 16:57:30 -0400 (EDT) To: Randall Wilson cc: "pgsql-admin@postgresql.org" Subject: Re: Idle Error invalid byte sequence In-reply-to: <48D2B5B0.9020708@earthcomber.com> References: <48D273D8.7010603@earthcomber.com> <23674.1221761835@sss.pgh.pa.us> <48D2B5B0.9020708@earthcomber.com> Comments: In-reply-to Randall Wilson message dated "Thu, 18 Sep 2008 15:10:24 -0500" Date: Thu, 18 Sep 2008 16:57:30 -0400 Message-ID: <2079.1221771450@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/205 X-Sequence-Number: 30298 Randall Wilson writes: > Yes, the encoding was changed from SQL_ASCII to UTF-8. Does the fact > that it's an "Idle" error conform your theory that some client is > causing the error? I thought the "Idle" error was caused by errors found > during background processes, like vacuums. You'd have to tell us what your log_line_prefix is before we could interpret that, but yeah, an encoding error in an incoming query string would be reported before the backend could even consider going non-idle. A SQL_ASCII database would have accepted any data whatsoever. If you want to change to something where you actually know the encoding, that's fine, but realize that you're going to have to make your clients be honest about what encoding they're using, too. regards, tom lane