pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Perdue, The Des Moines City.net <tim@dmcity.net>
To: Fabrice Scemama <fabrice.scemama@gesnet.net>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Max Length of SQL
Date: Thu, 21 Jan 1999 06:47:39 -0600
Message-ID: <000801be453c$3ae1bf60$0b8c5aa5@timnt.weather.net> (raw)

I've written a Java program that runs every so often (by Cron), then grabs
the email, slices and dices it and drops it into PGSQL.

It's pretty cool.

I'm not sure I understand BLOBS - are they indexable (ie fast searches) and
are they stored inside the table?

Is the example you gave appropriate for storing text? (looks like graphics?)

Tim



-----Original Message-----
From: Fabrice Scemama <fabrice.scemama@gesnet.net>
To: Tim Perdue, The Des Moines City.net <tim@dmcity.net>
Date: Thursday, January 21, 1999 6:29 AM
Subject: Re: [SQL] Max Length of SQL


>"Tim Perdue, The Des Moines City.net" wrote:
>>
>> I'm started to run into a situation where my SQL statements are too long
>> (I'm archiving a mailing list into a Postgres table).
>>
>> What is the max length of a Text field in PostgreSQL? Suggestions for
>> working around this besides large objects?
>>
>> Tim
>
>The maximal lenght is 8192 cars.
>You might need BLOBs instead. Here's an example :
>
>     create table image (name text, raster oid);
>       insert into image (name, raster) values ('fichier', \
>          lo_import('/etc/motd'));
>       select lo_export(image.raster, '/tmp/motd') from image \
>          where name = 'fichier';
>
>Hope it helps.
>BTW, using Pg to store Mailing lists emais seems interesting.
>Do you have a daemon that gets the mails, then parse them and
>populate the DB with them ?...
>
>Fabrice
>




view thread (4+ messages)  latest in thread

Message-ID: <000801be453c$3ae1bf60$0b8c5aa5@timnt.weather.net>
Permalink:  ../000801be453c$3ae1bf60$0b8c5aa5@timnt.weather.net/
Also on:    postgresql.org/message-id/000801be453c$3ae1bf60$0b8c5aa5@timnt.weather.net

 · 

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: tim@dmcity.net, fabrice.scemama@gesnet.net, pgsql-sql@hub.org
  Subject: Re: [SQL] Max Length of SQL
  In-Reply-To: <000801be453c$3ae1bf60$0b8c5aa5@timnt.weather.net>
  References: <000801be453c$3ae1bf60$0b8c5aa5@timnt.weather.net>

* 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