aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2009-01-05 17:14:28 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2009-01-05 17:14:28 +0000
commitba748f7a11ef884277b61d1708a17a44acfd1736 (patch)
treef4b87c06b0b0f36ab76a8724567470c757931f32 /src/backend/access/gist
parentb0a6ad70a12b6949fdebffa8ca1650162bf0254a (diff)
downloadpostgresql-ba748f7a11ef884277b61d1708a17a44acfd1736.tar.gz
postgresql-ba748f7a11ef884277b61d1708a17a44acfd1736.zip
Change the reloptions machinery to use a table-based parser, and provide
a more complete framework for writing custom option processing routines by user-defined access methods. Catalog version bumped due to the general API changes, which are going to affect user-defined "amoptions" routines.
Diffstat (limited to 'src/backend/access/gist')
-rw-r--r--src/backend/access/gist/gistutil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/access/gist/gistutil.c b/src/backend/access/gist/gistutil.c
index 0d66492601f..fa1e3088ad4 100644
--- a/src/backend/access/gist/gistutil.c
+++ b/src/backend/access/gist/gistutil.c
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.32 2009/01/01 17:23:35 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/access/gist/gistutil.c,v 1.33 2009/01/05 17:14:28 alvherre Exp $
*-------------------------------------------------------------------------
*/
#include "postgres.h"
@@ -670,9 +670,8 @@ gistoptions(PG_FUNCTION_ARGS)
bool validate = PG_GETARG_BOOL(1);
bytea *result;
- result = default_reloptions(reloptions, validate,
- GIST_MIN_FILLFACTOR,
- GIST_DEFAULT_FILLFACTOR);
+ result = default_reloptions(reloptions, validate, RELOPT_KIND_GIST);
+
if (result)
PG_RETURN_BYTEA_P(result);
PG_RETURN_NULL();