Re: TOAST & vacuum - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: TOAST & vacuum
Date
Msg-id 200007270210.WAA10521@candle.pha.pa.us
Whole thread Raw
In response to TOAST & vacuum  (JanWieck@t-online.de (Jan Wieck))
List pgsql-hackers
> FYI,
> 
>     TOAST  is now vacuum-safe. When needed, the toaster creates a
>     second  heap  tuple,  containing  only  plain  or  compressed
>     values.  This one is then returned by the heap access methods
>     to  the  caller,  so  indices  will  never  contain  external
>     references.
> 
>     The  changes  are  covered  by  #ifdef  TOAST_INDICES, so can
>     easily be disabled at the time we have  file  versioning  and
>     can recreate indices during vacuum.

Seems this has some performance advantages.  Un-toasting to traverse a
btree index would be pretty slow.  This way, it is all in the index.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: "Timothy H. Keitt"
Date:
Subject: faster insert with foreign key constraint?
Next
From: Larry Rosenman
Date:
Subject: Re: mac.c