summaryrefslogtreecommitdiff
path: root/contrib/hstore/hstore_gist.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/hstore/hstore_gist.c')
-rw-r--r--contrib/hstore/hstore_gist.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/contrib/hstore/hstore_gist.c b/contrib/hstore/hstore_gist.c
index 39ba92a6bf4..5d8b806d30a 100644
--- a/contrib/hstore/hstore_gist.c
+++ b/contrib/hstore/hstore_gist.c
@@ -96,15 +96,21 @@ PG_FUNCTION_INFO_V1(ghstore_out);
Datum
ghstore_in(PG_FUNCTION_ARGS)
{
- elog(ERROR, "Not implemented");
- PG_RETURN_DATUM(0);
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("cannot accept a value of type %s", "ghstore")));
+
+ PG_RETURN_VOID(); /* keep compiler quiet */
}
Datum
ghstore_out(PG_FUNCTION_ARGS)
{
- elog(ERROR, "Not implemented");
- PG_RETURN_DATUM(0);
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("cannot display a value of type %s", "ghstore")));
+
+ PG_RETURN_VOID(); /* keep compiler quiet */
}
static GISTTYPE *