pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Michael Vitale <michaelv@arin.net>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: cannot copy very large bytea data
Date: Wed, 23 May 2012 12:53:21 +0900
Message-ID: <4FBC5F31.1030201@tpf.co.jp> (raw)
In-Reply-To: <BA84E17931D09D4FB885850262DD60053188EE46@CHAXCH02.corp.arin.net>
References: <BA84E17931D09D4FB885850262DD60053188EE46@CHAXCH02.corp.arin.net>

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
>




view thread (3+ messages)  latest in thread

Message-ID: <4FBC5F31.1030201@tpf.co.jp>
Permalink:  ../4FBC5F31.1030201@tpf.co.jp/
Also on:    postgresql.org/message-id/4FBC5F31.1030201@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, michaelv@arin.net
  Subject: Re: cannot copy very large bytea data
  In-Reply-To: <4FBC5F31.1030201@tpf.co.jp>
  References: <BA84E17931D09D4FB885850262DD60053188EE46@CHAXCH02.corp.arin.net> <4FBC5F31.1030201@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox