Received: from rulffk.medfac.leidenuniv.nl (rulffk.medfac.leidenuniv.nl [132.229.167.205]) by hub.org (8.9.3/8.9.3) with ESMTP id CAA46962 for ; Wed, 8 Mar 2000 02:16:53 -0500 (EST) (envelope-from j.schaap@lumc.nl) Received: from lumc.nl (localhost [127.0.0.1]) by rulffk.medfac.leidenuniv.nl (8.9.3/8.9.3) with ESMTP id IAA32682; Wed, 8 Mar 2000 08:15:42 -0500 Sender: jeroen@rulffk.medfac.leidenuniv.nl Message-ID: <38C6527E.62FB33AF@lumc.nl> Date: Wed, 08 Mar 2000 08:15:42 -0500 From: Jeroen Elassaiss-Schaap Organization: LUMC X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12 i686) X-Accept-Language: en MIME-Version: 1.0 To: "Daniel J. Blezek, Ph.D." , pgsql-admin@postgreSQL.org Subject: Re: [ADMIN] Exec limit in pgtclsh References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > 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