Re: [HACKERS] LONG

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jan Wieck <wieck(at)debis(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] LONG
Date: 1999-12-12 00:01:49
Message-ID: 199912120001.TAA14030@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Maybe we make this mechanism so general that it is
> automatically applied to ALL varsize attributes? We'll end up
> with on big pg_long where 90+% of the databases content will
> be stored.
>
> But as soon as an attribute stored there is used in a WHERE
> or is subject to be joined, you'll see why not (as said, this
> type will NOT be enabled for indexing). The operation will
> probably fallback to a seq-scan on the main table and then
> the attribute must be fetched from pg_long with an index scan
> on every single compare etc. - no, no, no.

A field value over 8k is not going to be something you join on,
restrict, or order by in most cases. It is going to be some long
narrative or field that is just for output to the user, usually not used
to process the query.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1999-12-12 01:33:08 Jesus, what have I done (was: LONG)
Previous Message Bruce Momjian 1999-12-11 23:54:58 Re: [HACKERS] LONG