Disallow setting fillfactor for TOAST tables.

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 1c855f01ea55d7c19099165dcb35003c8fc3364a
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2009-04-04T00:45:02Z
Releases: 8.4.0
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.)

Files

PathChange+/−
src/backend/access/common/reloptions.c modified +43 −28
src/include/access/reloptions.h modified +14 −14