Re: pg_collation_actual_version() ERROR: cache lookup failed for collation 123

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-02-22T11:30:18Z
Lists: pgsql-hackers
On Mon, Feb 22, 2021 at 8:27 PM Michael Paquier <michael@paquier.xyz> wrote:
> Looks good to me, thanks!

Pushed, with one further small change: I realised that tab completion
should use a "schema" query.



Commits

  1. Tab-complete CREATE COLLATION.

  2. Refactor get_collation_current_version().

  3. pg_collation_actual_version() -> pg_collation_current_version().

  4. Hide internal error for pg_collation_actual_version(<bad OID>).