pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tolik@icomm.ru
To: Brian Baquiran <brianb@evoserve.com>
Cc: Ghita Voda <gvoda@smartsoft.ro>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgreSQL.org>
Subject: Re: [SQL] Insert a long text
Date: 19 Feb 1999 15:25:50 +0300
Message-ID: <87ww1ed1gx.fsf@tolikus.hq.aaanet.ru> (raw)
References: <Pine.OSF.3.91.990219200042.15691A-100000@athena.evoserve.com>

>>>>> "BB" == Brian Baquiran <brianb@evoserve.com> writes:

 >> I want to insert a long text (up to 10.000 words) into a table (for example, table1) into a field (field1) which is a 'text' field.
 >> I have tried the followings:
 >> INSERT INTO table1 VALUES (' long text'...) 
 >> UPDATE table1 SET field1='long text'
 >> and is not working.
 >> I'm using servlets and Apache server, on Linux.

 BB> What data type are you using for the text field? As far as I know, the 'text'
 BB> datatype can only take 8K.  

 BB> I don't know what the maximum size for varchar is. 

 BB> Brian

8K is maximum length of whole record. In your case you must use 'large 
objects' as datatype for big text.

-- 
Anatoly K. Lasareff              Email:       tolik@icomm.ru 
Senior programmer



view thread (6+ messages)  latest in thread

Message-ID: <87ww1ed1gx.fsf@tolikus.hq.aaanet.ru>
Permalink:  ../87ww1ed1gx.fsf@tolikus.hq.aaanet.ru/
Also on:    postgresql.org/message-id/87ww1ed1gx.fsf@tolikus.hq.aaanet.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tolik@icomm.ru, brianb@evoserve.com, gvoda@smartsoft.ro
  Subject: Re: [SQL] Insert a long text
  In-Reply-To: <87ww1ed1gx.fsf@tolikus.hq.aaanet.ru>
  References: <Pine.OSF.3.91.990219200042.15691A-100000@athena.evoserve.com> <87ww1ed1gx.fsf@tolikus.hq.aaanet.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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