pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Exec limit in pgtclsh
2+ messages / 2 participants
[nested] [flat]

* Exec limit in pgtclsh
@ 2000-03-07 20:18  Daniel J. Blezek, Ph.D. <blezek@crd.ge.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Daniel J. Blezek, Ph.D. @ 2000-03-07 20:18 UTC (permalink / raw)
  To: pgsql-admin

Hi all,

  Has anyone bumped into the 16K limit on the size of a statement using
pg_exec in the pgtclsh interface?  I'd like to populate a "text" field
using a large amount of text, but I get an error on the length limit of
the pg_exec call.  Something like this:


PQsendQuery() -- query is too long.  Maximum length is 16382

    while executing
"pg_exec $conn $statement"


Any ways around it?
-dan

--
Daniel Blezek, Ph.D.
blezek@crd.ge.com
Computer Graphics and Systems Program
Electronic Systems Lab
GE Corporate Research & Development




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [ADMIN] Exec limit in pgtclsh
@ 2000-03-08 13:15  Jeroen Elassaiss-Schaap <j.schaap@lumc.nl>
  parent: Daniel J. Blezek, Ph.D. <blezek@crd.ge.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Jeroen Elassaiss-Schaap @ 2000-03-08 13:15 UTC (permalink / raw)
  To: Daniel J. Blezek, Ph.D. <blezek@crd.ge.com>; pgsql-admin

> I'd like to populate a "text" field
> using a large amount of text, but I get an error on the length limit of
> the pg_exec call.  Something like this:
> 
> PQsendQuery() -- query is too long.  Maximum length is 16382
> 
>     while executing
> "pg_exec $conn $statement"

1. Divide text among different entries
2. Use large objects 


Jeroen


-- 
J. Elassaiss-Schaap 
Dept. Physiology  
Leiden University Medical Centre
Postbus 9604
2300 RC Leiden 
The Netherlands

tel: 071-5276811 
fax: 071-5276782 
E-mail: j.schaap@physiology.medfac.leidenuniv.nl



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-03-08 13:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-03-07 20:18 Exec limit in pgtclsh Daniel J. Blezek, Ph.D. <blezek@crd.ge.com>
2000-03-08 13:15 ` Jeroen Elassaiss-Schaap <j.schaap@lumc.nl>

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