Re: Remove inconsistent quotes from date_part error - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Remove inconsistent quotes from date_part error
Date
Msg-id 3546034.1641222702@sss.pgh.pa.us
Whole thread Raw
In response to Re: Remove inconsistent quotes from date_part error  (Nikhil Benesch <nikhil.benesch@gmail.com>)
Responses Re: Remove inconsistent quotes from date_part error
List pgsql-hackers
Nikhil Benesch <nikhil.benesch@gmail.com> writes:
> I could find only a tiny smattering of examples where format_type_be()
> is invoked with a constant OID. In almost all error messages where the
> type is statically known, it seems the type name is hardcoded into the
> error message rather than generated via format_type_be(). For example,
> all of the "TYPE out of range" errors.

Yeah, but we've been slowly converting to that method to reduce the number
of distinct translatable strings for error messages.  If doing so here
would cut the labor for translators, I'm for it.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Column Filtering in Logical Replication
Next
From: Nikhil Benesch
Date:
Subject: Re: Remove inconsistent quotes from date_part error