Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f2C1mQx35013 for ; Sun, 11 Mar 2001 20:48:26 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f2C1mMt23577; Sun, 11 Mar 2001 20:48:22 -0500 (EST) To: drevil@sidereal.kz cc: pgsql-general@postgresql.org Subject: Re: Data type for storing images? In-reply-to: <20010311223818.18682.qmail@mailhost.sidereal.kz> References: <20010311223818.18682.qmail@mailhost.sidereal.kz> Comments: In-reply-to message dated "11 Mar 2001 22:38:18 +0000" Date: Sun, 11 Mar 2001 20:48:21 -0500 Message-ID: <23574.984361701@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200103/489 X-Sequence-Number: 5975 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