Disallow setting fillfactor for TOAST tables.
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 4 Apr 2009 00:45:02 +0000 (00:45 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Sat, 4 Apr 2009 00:45:02 +0000 (00:45 +0000)
commitf285dc57d1936c8208b46f869e1aa8ce78facbd5
tree8afade2d28ba1f986d0ab53bf5e18353ccf2fe2a
parenta3fadaafdb1a8aa91600a23750ed1bc033552842
Disallow setting fillfactor for TOAST tables.

To implement this without almost duplicating the reloption table, treat
relopt_kind as a bitmask instead of an integer value.  This decreases the
range of allowed values, but it's not clear that there's need for that much
values anyway.

This patch also makes heap_reloptions explicitly a no-op for relation kinds
other than heap and TOAST tables.

Patch by ITAGAKI Takahiro with minor edits from me.  (In particular I removed
the bit about adding relation kind to an error message, which I intend to
commit separately.)
src/backend/access/common/reloptions.c
src/include/access/reloptions.h