pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: pg_collation_actual_version() ERROR: cache lookup failed for collation 123
Date: Thu, 18 Feb 2021 16:15:44 +0900
Message-ID: <YC4UIOaPTk1wxDms@paquier.xyz> (raw)
In-Reply-To: <CA+hUKGLOtrctjD3qN429n-knPBv7jS6LYDjNP9rW0Ggh-gQJsg@mail.gmail.com>
References: <20210117215940.GE8560@telsasoft.com>
	<CA+hUKGJ=qZ3i=0upYYX3aXEpzWsPDhnMQ-o79DVCrBfhLz8nvA@mail.gmail.com>
	<CA+hUKGLBLAL28XqmgPe=qEourgQBd++7RdS_u7o5FwJBenRcJg@mail.gmail.com>
	<YCy/4WpJEDLY/PN1@paquier.xyz>
	<CA+hUKGLOtrctjD3qN429n-knPBv7jS6LYDjNP9rW0Ggh-gQJsg@mail.gmail.com>

On Thu, Feb 18, 2021 at 10:45:53AM +1300, Thomas Munro wrote:
> I guess I was trying to preserve a distinction between "unknown OID"
> and "this is a collation OID, but I don't have version information for
> it" (for example, "C.utf8").  But it hardly matters, and your
> suggestion works for me.  Thanks for looking!

Could you just add a test with pg_collation_current_version(0)?

+       pg_strncasecmp("POSIX.", collcollate, 6) != 0)
I didn't know that "POSIX." was possible.

While on it, I guess that you could add tab completion support for
CREATE COLLATION foo FROM.  And shouldn't CREATE COLLATION complete
with the list of existing collation?
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (9+ messages)  latest in thread

Message-ID: <YC4UIOaPTk1wxDms@paquier.xyz>
Permalink:  ../YC4UIOaPTk1wxDms@paquier.xyz/
Also on:    postgresql.org/message-id/YC4UIOaPTk1wxDms@paquier.xyz

 · 

reply

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: michael@paquier.xyz, thomas.munro@gmail.com, pryzby@telsasoft.com
  Subject: Re: pg_collation_actual_version() ERROR: cache lookup failed for collation 123
  In-Reply-To: <YC4UIOaPTk1wxDms@paquier.xyz>
  References: <20210117215940.GE8560@telsasoft.com> <CA+hUKGJ=qZ3i=0upYYX3aXEpzWsPDhnMQ-o79DVCrBfhLz8nvA@mail.gmail.com> <CA+hUKGLBLAL28XqmgPe=qEourgQBd++7RdS_u7o5FwJBenRcJg@mail.gmail.com> <YCy/4WpJEDLY/PN1@paquier.xyz> <CA+hUKGLOtrctjD3qN429n-knPBv7jS6LYDjNP9rW0Ggh-gQJsg@mail.gmail.com> <YC4UIOaPTk1wxDms@paquier.xyz>

* 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