From: | "John Gray" <jgray(at)azuli(dot)co(dot)uk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: How to turn off TOAST on a table/column |
Date: | 2001-11-27 21:14:41 |
Message-ID: | 9u0vn2$263f$1@news.tht.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
In article <3C03F6A0(dot)1010702(at)xythos(dot)com>, "Barry Lind" <barry(at)xythos(dot)com>
wrote:
> So how do I create a table without toast enabled? I have looked through
> the docs for 'create table' and didn't see anything that indicates this
> is possible. Is there some undocumented syntax?
>
One of the additions in my "TOAST slicing" patch is the provision of
ALTER TABLE x ALTER COLUMN y SET STORAGE {EXTERNAL | PLAIN | EXTENDED |
MAIN} -but, in short, it sets attstorage (in pg_attribute) for the
appropriate column, which has the effect of forcing certain TOAST
behaviour.
For the moment, you could just set attstorage to 'e' which will turn off
compression (but still use the second table), or 'm' which will turn off the use
of the external table for that attribute (or 'p' which will do both). Note that
fixed-length types must have attstorage 'p' (by fixed length I mean things
like integer etc. -- varchar(n) is a variable-length type.)
Obviously all the usual caveats about altering system catalogs apply...
Regards
John
--
John Gray
Azuli IT http://www.azuli.co.uk +44 121 693 3397
jgray(at)azuli(dot)co(dot)uk
From | Date | Subject | |
---|---|---|---|
Next Message | Ross J. Reedstrom | 2001-11-27 22:02:00 | Re: [HACKERS] How to turn off TOAST on a table/column |
Previous Message | Bruce Momjian | 2001-11-27 21:01:55 | Re: Bug in createlang? |
From | Date | Subject | |
---|---|---|---|
Next Message | Khoa Do | 2001-11-27 21:19:59 | Re: Announcement: I've joined Red Hat |
Previous Message | Jeff Davis | 2001-11-27 21:02:53 | Re: Announcement: I've joined Red Hat |