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 AC7CDDADBE for ; Tue, 25 Oct 2005 11:23:32 -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 58824-02 for ; Tue, 25 Oct 2005 14:23:23 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id CD7AFDAD35 for ; Tue, 25 Oct 2005 11:23:17 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9PENKgp013783; Tue, 25 Oct 2005 10:23:20 -0400 (EDT) To: "Chris Mair" Cc: pgsql-performance@postgresql.org Subject: Re: insertion of bytea In-reply-to: <54222.193.206.186.101.1130247876.squirrel@www.endian.it> References: <54222.193.206.186.101.1130247876.squirrel@www.endian.it> Comments: In-reply-to "Chris Mair" message dated "Tue, 25 Oct 2005 15:44:36 +0200" Date: Tue, 25 Oct 2005 10:23:20 -0400 Message-ID: <13782.1130250200@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/363 X-Sequence-Number: 15131 "Chris Mair" writes: > 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? regards, tom lane