Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XQ1gx-00056B-Im for pgsql-admin@arkaria.postgresql.org; Fri, 05 Sep 2014 22:09:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XQ1gw-0006kW-MI for pgsql-admin@arkaria.postgresql.org; Fri, 05 Sep 2014 22:09:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XQ1gu-0006kH-A4 for pgsql-admin@postgresql.org; Fri, 05 Sep 2014 22:09:12 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XQ1gp-0006Ql-ST for pgsql-admin@postgresql.org; Fri, 05 Sep 2014 22:09:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by gateway2.nyi.internal (Postfix) with ESMTP id A56CD208C6 for ; Fri, 5 Sep 2014 18:09:05 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Fri, 05 Sep 2014 18:09:05 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=h5Poz+8uQg+pyaFk5D8itU4VsBk=; b=i3FKHzoyha2GUewDDcAxEVaXDWqR vgINHE/EACfp1Z12qZ2JpkJLWIGtBVekRG5zNuWpNuFraLfe6LP12DXtwKlRhCQ9 U1sVfhFJMw83itDErJUXI1VOHcbkyeo4IfIJ5lJ32QwyP/+2ji+3nD4hFHIZ9KBw pjt/y0n5sfh1m8U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=h5Poz+8uQg+pyaFk5D8itU 4VsBk=; b=MKdaUX2fUiFYqcc/4eZ+9TArWnikqLsi6Y8aFkR4OFdmUBoi6KROla XM3ivXxdFTXdLCHv63Ru6Cw5PnT5JdBw3NtAfmEph6XUSofw/GKy2rahg/Bxeasu SWv0LK9OLQWb6Uyvx9BdMJ5ThvUkK/PIC62wjC/QY8O2s1Z36AF+A= X-Sasl-enc: c1jS09O3lucRcgiq54+iyXaxaA/56Qg+c8TC2oKDoyuz 1409954945 Received: from [192.168.1.5] (unknown [174.21.177.1]) by mail.messagingengine.com (Postfix) with ESMTPA id F2F0BC00915; Fri, 5 Sep 2014 18:09:04 -0400 (EDT) Message-ID: <540A3480.9040601@aklaver.com> Date: Fri, 05 Sep 2014 15:09:04 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Alanoly Andrews , 'Craig James' CC: "pgsql-admin@postgresql.org" , "pgsql-general@postgresql.org" Subject: Re: [GENERAL] Re: Cannot retrieve images inserted through VB and odbc, after a table reorganization. References: <6909b219ecae4d41b431efdaf6c953a3@Exch2.invera.com> <5407679B.2030906@aklaver.com> <54086B77.9090102@aklaver.com> <5408CED2.10302@aklaver.com> <8dd4e9c35f6441b6b9d20b1eb659688e@Exch2.invera.com> In-Reply-To: <8dd4e9c35f6441b6b9d20b1eb659688e@Exch2.invera.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On 09/05/2014 08:33 AM, Alanoly Andrews wrote: > Hi Adrian, > > 1. We are storing our large objects in a table column whose datatype is "lo" (which, I understand, ultimately is in fact "bytea"). As way of testing where the issue is, you might explore saving some images in a test table directly to a bytea column. This is presumably what the Bytea as LO option is for. Then run CLUSTER on the test table and see what happens. > 2. The error messge returned to the VB is, yes, very generic. And the backend postgres server does not have any messages relevant to this issue. > 3. We set the trace on in the odbc driver and got a large log file, from which I give below the part that I think is significant. It refers to the "buffer size being too small". Where, in the odc settings, do we set the buffer size? > I would recommend posting the below(with some background information) on the -odbc list where there are folks that might better understand it. > > STELimageViewOn 834-fec EXIT SQLGetData with return code 1 (SQL_SUCCESS_WITH_INFO) > HSTMT 0x002BFC70 > UWORD 2 > SWORD 1 > PTR 0x0018EECF [ 0] "" > SQLLEN 0 > SQLLEN * 0x0018EEA4 (6) > > DIAG [01004] The buffer was too small for the GetData. (-2) > > STELimageViewOn 834-fec ENTER SQLGetData > HSTMT 0x002BFC70 > UWORD 2 > SWORD -2 > PTR > SQLLEN 0 > SQLLEN * 0x0018EE54 > > STELimageViewOn 834-fec EXIT SQLGetData with return code 1 (SQL_SUCCESS_WITH_INFO) > HSTMT 0x002BFC70 > UWORD 2 > SWORD -2 > PTR > SQLLEN 0 > SQLLEN * 0x0018EE54 (46165) > > DIAG [01004] The buffer was too small for the GetData. (-2) > > STELimageViewOn 834-fec ENTER SQLGetData > HSTMT 0x002BFC70 > UWORD 2 > SWORD -2 > PTR > SQLLEN 32768 > SQLLEN * 0x003CE284 > > STELimageViewOn 834-fec EXIT SQLGetData with return code -1 (SQL_ERROR) > HSTMT 0x002BFC70 > UWORD 2 > SWORD -2 > PTR > SQLLEN 32768 > SQLLEN * 0x003CE284 > > DIAG [S1000] Error reading from large object. (1) -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin