Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id A42BAA684DE for ; Mon, 21 May 2012 18:57:53 -0300 (ADT) Received: from pgfoundry.org ([200.46.204.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SWabu-0000wT-Vj for pgsql-odbc@postgresql.org; Mon, 21 May 2012 21:57:52 +0000 Received: from maia.hub.org (unknown [200.46.151.188]) by pgfoundry.org (Postfix) with ESMTP id A6A24137FC05 for ; Mon, 21 May 2012 21:57:35 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.151.188]) (amavisd-maia, port 10024) with ESMTP id 16696-09; Mon, 21 May 2012 21:57:28 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id A313E137FC02; Mon, 21 May 2012 21:57:28 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1011196 ] Cannot insert very large blobs Content-type: text/plain; charset=UTF-8 Message-Id: <20120521215728.A313E137FC02@pgfoundry.org> Date: Mon, 21 May 2012 21:57:28 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.901 tagged_above=-5 required=4.9 tests=BAYES_00=-1.9, NO_RELAYS=-0.001 X-Spam-Level: X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201205/5 X-Sequence-Number: 10843 Bugs item #1011196, was opened at 2012-05-21 21:57 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1011196&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Michael Vitale (pgdude) Assigned to: Nobody (None) Summary: Cannot insert very large blobs Initial Comment: I can use the PostgreSQL ODBC driver to insert a blob (bytea) of 128 megabytes, but when I try to insert one that is 399 megabytes it fails with: Query buffer overflow in copy_statement_with_parameters The actuall call that fails is SQLExecute. Here is the snippet of code I see in convert.c: enlarge_query_statement(QueryBuild *qb, size_t newsize) { size_t newalsize = INIT_MIN_ALLOC; CSTR func = "enlarge_statement"; if (qb->str_size_limit > 0 && qb->str_size_limit < (int) newsize) { < here is the branch that is executed> ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1011196&group_id=1000125