Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B3734633594 for ; Fri, 3 Apr 2009 21:45:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 57337-05 for ; Fri, 3 Apr 2009 21:45:04 -0300 (ADT) Received: from cvs.postgresql.org (cvs.postgresql.org [217.196.146.206]) by mail.postgresql.org (Postfix) with ESMTP id 49DAA633EF2 for ; Fri, 3 Apr 2009 21:45:04 -0300 (ADT) Received: by cvs.postgresql.org (Postfix, from userid 1193) id 81A0D754ADE; Sat, 4 Apr 2009 00:45:02 +0000 (UTC) MIME-Version: 1.0 To: pgsql-committers@postgresql.org Subject: pgsql: Disallow setting fillfactor for TOAST tables. X-Mailer: activitymail 1.24, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain Message-Id: <20090404004502.81A0D754ADE@cvs.postgresql.org> Date: Sat, 4 Apr 2009 00:45:02 +0000 (UTC) From: alvherre@postgresql.org (Alvaro Herrera) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/47 X-Sequence-Number: 36541 Log Message: ----------- 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.) Modified Files: -------------- pgsql/src/backend/access/common: reloptions.c (r1.24 -> r1.25) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/common/reloptions.c?r1=1.24&r2=1.25) pgsql/src/include/access: reloptions.h (r1.13 -> r1.14) (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/access/reloptions.h?r1=1.13&r2=1.14)