Re: Error message cleanup - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Error message cleanup
Date
Msg-id 1366.1064464476@sss.pgh.pa.us
Whole thread Raw
In response to Re: Error message cleanup  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
List pgsql-hackers
Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> Are you going to change "relation" to "table"?  In most cases that is
> the intended meaning.  ISTM in some other cases it refers to anything
> that can appear in pg_class, but I'm not 100% sure.

Quite a lot of the code considers "relation" to mean "anything that has
a pg_class entry", which is a definition that's gotten fuzzier and
fuzzier as we've thrown more stuff into pg_class.  (Standalone composite
types, for example, hardly qualify as a relation by anyone's
understanding of the term.  But they have pg_class entries now.)

I don't mind rewording error messages to say "table" when in fact they
could only be referring to plain tables.  But let's not just move the
fuzziness over from "relation" to "table".
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: PostgreSQL not ACID compliant?
Next
From: Peter Eisentraut
Date:
Subject: Re: Error message cleanup