X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 49EA4DAE17 for ; Tue, 25 Oct 2005 18:46:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36728-02 for ; Tue, 25 Oct 2005 21:46:25 +0000 (GMT) Received: from my.endian.it (unknown [62.146.87.34]) by svr1.postgresql.org (Postfix) with ESMTP id 9F9A2DA8EF for ; Tue, 25 Oct 2005 18:46:26 -0300 (ADT) Received: from 1006.org (localhost.localdomain [127.0.0.1]) by my.endian.it (8.11.6/8.11.6) with SMTP id j9PLflc23738; Tue, 25 Oct 2005 23:41:47 +0200 Received: from host118-59.pool8258.interbusiness.it ([82.58.59.118]) (SquirrelMail authenticated user list@1006.org) by www.endian.it with HTTP; Tue, 25 Oct 2005 23:41:47 +0200 (CEST) Message-ID: <19131.82.58.59.118.1130276507.squirrel@www.endian.it> Date: Tue, 25 Oct 2005 23:41:47 +0200 (CEST) Subject: Re: insertion of bytea From: "Chris Mair" To: In-Reply-To: <13782.1130250200@sss.pgh.pa.us> References: <54222.193.206.186.101.1130247876.squirrel@www.endian.it> <13782.1130250200@sss.pgh.pa.us> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/374 X-Sequence-Number: 15142 >> Am I correct in assuming that even though I'm passing my 52000 >> bytes as a (char *) to PQexecPrepared(), encoding/decoding is >> happening (think 0 -> \000) somewhere in the transfer? > > Are you specifying it as a text or binary parameter? Have you looked to > see if the stored data is what you expect? I'm specifying it as binary (i.e. one's in PQexecPrepared's format parameter). The stored data is correct. I'll try "copy from stdin with binary" tomorrow and see what I get... Thanks & Bye, Chris.