Re: [HACKERS] Tricky query, tricky response

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Tricky query, tricky response
Date: 1999-10-03 16:53:18
Message-ID: 20890.938969598@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Anyway, I thought wouldn't a more, um, user-friendly error message like
> ERROR: Subselects are not allowed in target list.
> be more desirable than
> ERROR: flatten_tlistentry: Cannot handle node type 108

Yes, it would. Are you volunteering to try to make that happen?
(Not for this one case, but for everything?)

There's been some discussion of trying to clean up the error reporting
conventions, and in particular separate internal details (such as which
routine is reporting the error) from the "user level" information.
But a lot of the internal checks are pretty content-free from a user's
point of view, and there's little to be done about that. (Does
flatten_tlistentry have a clue *why* it got a node type it never heard
of? Nyet.) I do not think that a generic "Internal error" message
would be an improvement over what we have, messy though it is. It's
not a simple problem...

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 1999-10-03 19:54:10 Re: [HACKERS] RI status report #2
Previous Message Tom Lane 1999-10-03 16:41:49 Re: [HACKERS] NULL as an argument in plpgsql functions