diff options
Diffstat (limited to 'contrib/pg_trgm/trgm_gist.c')
-rw-r--r-- | contrib/pg_trgm/trgm_gist.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/contrib/pg_trgm/trgm_gist.c b/contrib/pg_trgm/trgm_gist.c index 7a7be807af1..3d74a1463a6 100644 --- a/contrib/pg_trgm/trgm_gist.c +++ b/contrib/pg_trgm/trgm_gist.c @@ -55,15 +55,21 @@ PG_FUNCTION_INFO_V1(gtrgm_options); Datum gtrgm_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", "gtrgm"))); + + PG_RETURN_VOID(); /* keep compiler quiet */ } Datum gtrgm_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", "gtrgm"))); + + PG_RETURN_VOID(); /* keep compiler quiet */ } static TRGM * |