Re: fillfactor for toast tables is useless?

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: fillfactor for toast tables is useless?
Дата
Msg-id 20090213100104.201D.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: fillfactor for toast tables is useless?  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: fillfactor for toast tables is useless?
Список pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> wrote:

> ITAGAKI Takahiro wrote:
> > With reloption patch, we can set WITH options to toast tables.
> > However, fillfactor for toast tables is useless, no?
>
> Maybe what we should do is just reject fillfactor for toast tables for
> now.  I think this is easy to do.

Hmmm... this might have been discussed already, I think it would be better
to have relopt_kind not as a sequence number but as a bit flag.
If it was flags, we can reject fillfactor for toast tables in a natural way
without duplicated autovacuum_* definitions:

  - fillfactor   -> RELOPT_KIND_HEAP
  - autovacuum_* -> RELOPT_KIND_HEAP | RELOPT_KIND_TOAST

26 entries are remained even after we use 6 kinds in the core.
(HEAP, TOAST, BTREE, HASH, GIN and GIST)

The attached is a patch to change 3 things:
  - Reject toast.fillfactor.
  - Modify relopt_kind to bit flags.
  - Report relation type on "unrecognized parameter" errors.

Comments welcome.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Missing files after make install ?
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Hot Standby: subxid cache changes