Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 5FF5F1AE706F for ; Wed, 23 May 2012 00:53:49 -0300 (ADT) Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SX2dt-0001WJ-Rf for pgsql-odbc@postgresql.org; Wed, 23 May 2012 03:53:49 +0000 Received: (qmail 28056 invoked by uid 512); 23 May 2012 03:53:29 -0000 Received: from unknown (HELO ?100.0.32.108?) (100.0.32.108) by sd2.tpf-fw-c.co.jp with SMTP; 23 May 2012 03:53:29 -0000 Message-ID: <4FBC5F31.1030201@tpf.co.jp> Date: Wed, 23 May 2012 12:53:21 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Michael Vitale CC: "pgsql-odbc@postgresql.org" Subject: Re: cannot copy very large bytea data References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/10 X-Sequence-Number: 10848 Hi Michael, (2012/05/22 22:57), Michael Vitale wrote: > I am able to copy a row with a 127megabyte column, but not with one that > is 399 megabytes. Please try the type lo instead of bytea. regards, Hiroshi Inoue > Here is the log output of the one that fails: > > [4272-42.487]SQL_VARBINARY: about to call convert_to_pgbinary, used = > 399966009 > [4272-42.488]STATEMENT ERROR: func=enlarge_statement, desc='', errnum=1, > errmsg='Query buffer allocate error in copy_statement_with_parameters' > [4272-42.496]CONN ERROR: func=enlarge_statement, desc='', errnum=0, > errmsg='(NULL)' > [4272-42.499]retval=-1 > [4272-42.500][[SQLGetDiagFieldW]] Handle=(3,08F47DD0) Rec=1 Id=4 > info=(09BF6788,12) > [4272-42.500]PGAPI_GetDiagField entering > rec=1[4272-42.500]ER_ReturnError: status = 1, msg = #Query buffer > allocate error in copy_statement_with_parameters# > [4272-42.501] szSqlState = 'HY000',len=61, szError='(null)' > [4272-42.501]PGAPI_GetDiagField exiting 0 >