From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-hackers@postgresql.org
Subject: pg_collation_actual_version() ERROR: cache lookup failed for collation 123
Date: Sun, 17 Jan 2021 15:59:40 -0600
Message-ID: <20210117215940.GE8560@telsasoft.com> (raw)
As of 257836a75, this returns:
|postgres=# SELECT pg_collation_actual_version(123);
|ERROR: cache lookup failed for collation 123
|postgres=# \errverbose
|ERROR: XX000: cache lookup failed for collation 123
|LOCATION: get_collation_version_for_oid, pg_locale.c:1754
I'm of the impression that's considered to be a bad behavior for SQL accessible
functions.
In v13, it did the same thing but with different language:
|ts=# SELECT pg_collation_actual_version(123);
|ERROR: collation with OID 123 does not exist
|ts=# \errverbose
|ERROR: 42704: collation with OID 123 does not exist
|LOCATION: pg_collation_actual_version, collationcmds.c:367
--
Justin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: pryzby@telsasoft.com
Subject: Re: pg_collation_actual_version() ERROR: cache lookup failed for collation 123
In-Reply-To: <20210117215940.GE8560@telsasoft.com>
References: <20210117215940.GE8560@telsasoft.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox