Re: Help: Change the SQL query length

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marcos Cruz <Marcos(dot)Cruz(at)iti(dot)gov(dot)br>
Cc: pgsql-general(at)postgreSQL(dot)org, pgsql-odbc(at)postgreSQL(dot)org
Subject: Re: Help: Change the SQL query length
Date: 2001-05-11 15:57:07
Message-ID: 5211.989596627@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-odbc

Marcos Cruz <Marcos(dot)Cruz(at)iti(dot)gov(dot)br> writes:
> I'm changing a database from Access'97 to PostgreSQL 7.1.1 and
> found a query limit when a I have large text field into the SQL
> insert.

> The returned msg is like " query too long, length > 8191 octets"

Hm, I notice

#define TEXT_FIELD_SIZE 8190 /* size of text fields
* (not including null
* term) */

in src/interfaces/odbc/psqlodbc.h ... does changing that help?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joel Burton 2001-05-11 16:00:18 Re: Upcoming PostgreSQL seminars
Previous Message Tim Barnard 2001-05-11 15:51:05 Re: Newbie HOWTO

Browse pgsql-odbc by date

  From Date Subject
Next Message kapil c. tilwani 2001-05-11 17:59:36 Re: RE: RE: ODBC and Access 2000
Previous Message Ludek Finstrle 2001-05-11 13:57:25 Re: Case sensitivity