Skip site navigation (1) Skip section navigation (2)

Re: postdrv & 'query string to long' revisted

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: CB <craigbe(at)ids(dot)net>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: postdrv & 'query string to long' revisted
Date: 2000-05-29 17:29:24
Message-ID: 21606.959621364@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
CB <craigbe(at)ids(dot)net> writes:
> Is there a workaround to the 8K query size limit?  I'm trying to export
> some tables from access and am encountering the dreaded 'query string
> too long' problem.

Which ODBC driver are you using?

It looks like no one has gotten round to teaching ours that there is
no more query length limit --- it still has hardwired internal buffer
sizes :-(.  But the limit it imposes appears to be 16K not 8K in the
current code.  If you are getting 8K then you are probably using a
very old version of the ODBC code, or maybe someone else's driver
entirely.

A quick-hack solution is just to increase MAX_QUERY_SIZE in
src/interfaces/odbc/psqlodbc.h to whatever you need.

			regards, tom lane

In response to

pgsql-general by date

Next:From: Charles TassellDate: 2000-05-29 17:47:29
Subject: Re: ODBC
Previous:From: Tom LaneDate: 2000-05-29 17:21:41
Subject: Re: ODBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group