From: Tom Lane <tgl@sss.pgh.pa.us>
To: drevil@sidereal.kz
Cc: pgsql-general@postgresql.org
Subject: Re: Data type for storing images?
Date: Sun, 11 Mar 2001 20:48:21 -0500
Message-ID: <23574.984361701@sss.pgh.pa.us> (raw)
In-Reply-To: <20010311223818.18682.qmail@mailhost.sidereal.kz>
References: <20010311223818.18682.qmail@mailhost.sidereal.kz>
<drevil@sidereal.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
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, drevil@sidereal.kz, pgsql-general@postgresql.org
Subject: Re: Data type for storing images?
In-Reply-To: <23574.984361701@sss.pgh.pa.us>
* 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