From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | unclear enum error messages |
Date: | 2007-11-28 12:27:12 |
Message-ID: | 200711281327.12473.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
There are a few error messages like this in the code:
/*
* We rely on being able to get the specific enum type from the calling
* expression tree. The generic type mechanism should have ensured that
* both are of the same type.
*/
enumtypoid = get_fn_expr_argtype(fcinfo->flinfo, 0);
if (enumtypoid == InvalidOid)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("could not determine actual enum type")));
First, isn't this an internal error?
What is an actual enum type? And how should a user react if he got this
message? I would ask, "why not?".
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From | Date | Subject | |
---|---|---|---|
Next Message | Zdenek Kotala | 2007-11-28 12:43:10 | Re: PG 7.3 is five years old today |
Previous Message | Alvaro Herrera | 2007-11-28 12:20:35 | Re: Still a NOTICE in dict_thesaurus.c |