Re: Data type for storing images?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: drevil(at)sidereal(dot)kz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Data type for storing images?
Date: 2001-03-12 01:48:21
Message-ID: 23574.984361701@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

<drevil(at)sidereal(dot)kz> writes:
> I would like to store some images in my Postgres database. These will
> all be thumbnails, limited to 4k or 5k. I know that PG has an 8k row
> limit, but this should be fine, because there's not much else in the
> row. Which data type could I use to store them, and is there a
> performance cost for having rows that are this big? The system will
> be using PG7.1, btw.

bytea is probably your best bet. The 8k limit is toast in 7.1, btw.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Rawnsley 2001-03-12 02:04:52 'Exotic' Features
Previous Message Tom Lane 2001-03-12 01:46:51 Re: Anyone can create tables!

Browse pgsql-interfaces by date

  From Date Subject
Next Message David Wall 2001-03-12 02:12:29 Re: Data type for storing images?
Previous Message drevil 2001-03-11 22:38:18 Data type for storing images?