Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6754264FD22 for ; Thu, 18 Sep 2008 19:40:12 -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 46707-06 for ; Thu, 18 Sep 2008 19:40:06 -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 postgresql.org (Postfix) with ESMTP id C793C64FE0F for ; Thu, 18 Sep 2008 19:39:56 -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 m8IMdpap006183; Thu, 18 Sep 2008 18:39:52 -0400 (EDT) To: Randall Wilson cc: "pgsql-admin@postgresql.org" Subject: Re: Idle Error invalid byte sequence In-reply-to: <48D2CCF4.9090007@earthcomber.com> References: <48D273D8.7010603@earthcomber.com> <23674.1221761835@sss.pgh.pa.us> <48D2B5B0.9020708@earthcomber.com> <2079.1221771450@sss.pgh.pa.us> <48D2CCF4.9090007@earthcomber.com> Comments: In-reply-to Randall Wilson message dated "Thu, 18 Sep 2008 16:49:40 -0500" Date: Thu, 18 Sep 2008 18:39:51 -0400 Message-ID: <6182.1221777591@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/209 X-Sequence-Number: 30302 Randall Wilson writes: > log_line_prefix = '[%t] %i' > So, "idle" is just the "command tag", which probably means it's not > associated with a command. No, you missed my point: if an incoming command contains invalidly encoded characters, the error about that will be thrown *before* the command tag can be changed from "idle". I think you are looking in the wrong place entirely --- the bad data is not in the database, it's coming from a client. regards, tom lane