Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BAB192E30E2 for ; Mon, 21 Jan 2008 21:09:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 82571-05 for ; Mon, 21 Jan 2008 21:09:27 -0400 (AST) Received: from outbound-mail-12.bluehost.com (outbound-mail-12.bluehost.com [69.89.18.112]) by postgresql.org (Postfix) with SMTP id 8CB4B2E30DF for ; Mon, 21 Jan 2008 21:09:34 -0400 (AST) Received: (qmail 14404 invoked by uid 0); 22 Jan 2008 01:09:32 -0000 Received: from unknown (HELO box54.bluehost.com) (69.89.20.54) by mailproxy1.bluehost.com with SMTP; 22 Jan 2008 01:09:32 -0000 Received: from vdsl-151-118-147-19.dnvr.qwest.net ([151.118.147.19] helo=new-host.home) by box54.bluehost.com with esmtp (Exim 4.68) (envelope-from ) id 1JH7ds-0004IG-IW for pgsql-admin@postgresql.org; Mon, 21 Jan 2008 18:09:32 -0700 From: Kevin Kempter To: pgsql-admin@postgresql.org Subject: pg_restore errors Date: Mon, 21 Jan 2008 18:06:57 -0700 User-Agent: KMail/1.9.6 (enterprise 0.20071123.740460) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801211806.57989.kevin@kevinkempterllc.com> X-Identified-User: {840:box54.bluehost.com:kevinkem:kevinkempterllc.com} {sentby:bopbeforesmtp 151.118.147.19 authed with kevinkempterllc.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/216 X-Sequence-Number: 27990 Hi List; Trying to restore a pg_dump I get this: pg_restore: ERROR: invalid byte sequence for encoding "UTF8": 0xae HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". CONTEXT: COPY imm_lookup, line 2 pg_restore: [archiver (db)] error returned by PQendcopy: ERROR: invalid byte sequence for encoding "UTF8": 0xae HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". CONTEXT: COPY imm_lookup, line 2 This is a dump file that was handed to me from a client. I don't know anything about what the dump flags were or what the db encoding was. Is there a way to find out (I'm assuming this is an encoding mis-match) from the dump file. I did do a pg_restore -l and got this: ; ; Archive created at Wed Nov 28 21:04:49 2007 ; dbname: practice ; TOC Entries: 867 ; Compression: -1 ; Dump Version: 1.10-0 ; Format: CUSTOM ; Integer: 4 bytes ; Offset: 4 bytes ; Dumped from database version: 8.1.9 ; Dumped by pg_dump version: 8.1.4 ; ; ; Selected TOC Entries: ; 5; 2615 2200 SCHEMA - public postgres 2911; 0 0 COMMENT - SCHEMA public postgres 2912; 0 0 ACL - public postgres 589; 2612 43134 PROCEDURAL LANGUAGE - plpgsql 14; 1255 43135 FUNCTION public dtos(date) postgres 27; 1255 43136 FUNCTION public get_session_alta_user() postgres 15; 1255 43137 FUNCTION public plpgsql_call_handler() postgres 16; 1255 43138 FUNCTION public plpgsql_validator(oid) postgres 23; 1255 43139 FUNCTION public process_appointment_audit() postgres 24; 1255 43140 FUNCTION public process_billing_audit() postgres 25; 1255 43141 FUNCTION public process_billing_detail_audit() postgres 26; 1255 43142 FUNCTION public process_patient_audit() postgres 1524; 1259 43146 TABLE public address postgres 2913; 0 0 SEQUENCE SET public address_rec_no_seq postgres Any thoughts? Thanks in advance.. /Kevin