diff options
Diffstat (limited to 'src/backend/access/gin/ginutil.c')
-rw-r--r-- | src/backend/access/gin/ginutil.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/backend/access/gin/ginutil.c b/src/backend/access/gin/ginutil.c index b9cb80a6cf1..17e041bc4a8 100644 --- a/src/backend/access/gin/ginutil.c +++ b/src/backend/access/gin/ginutil.c @@ -8,7 +8,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/access/gin/ginutil.c,v 1.1 2006/05/02 11:28:54 teodor Exp $ + * $PostgreSQL: pgsql/src/backend/access/gin/ginutil.c,v 1.2 2006/07/02 02:23:18 momjian Exp $ *------------------------------------------------------------------------- */ @@ -201,3 +201,17 @@ GinPageGetCopyPage( Page page ) { return tmppage; } + +Datum +ginoption(PG_FUNCTION_ARGS) +{ + ArrayType *options = (ArrayType *) PG_GETARG_POINTER(0); + + if (options != NULL) + ereport(ERROR, + (errcode(ERRCODE_INVALID_PARAMETER_VALUE), + errmsg("GIN does not support parameters at all"))); + + /* Do not use PG_RETURN_NULL. */ + PG_RETURN_BYTEA_P(NULL); +} |