Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1G5M-0001Au-FM for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Jan 2021 21:59:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1G5L-0002ns-Cs for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Jan 2021 21:59:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1G5L-0002nl-16 for pgsql-hackers@lists.postgresql.org; Sun, 17 Jan 2021 21:59:47 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l1G5I-0002oY-KT for pgsql-hackers@postgresql.org; Sun, 17 Jan 2021 21:59:46 +0000 Received: by mail-io1-xd35.google.com with SMTP id d13so26040188ioy.4 for ; Sun, 17 Jan 2021 13:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Eq11tVHrOi3h74lVF2C84229MFNbVqYtuCq5hecmnu8=; b=JpOS64qtpLu9fCsuNFeItEF+NS/d58cKnZS51f+Zba+jZUxtAWAFwGQDxfuJHx7jub N+WpcGMNnP6ENG5WiHiZJuEPIiuIRNgl3VFWZSj5exCT6bAYldQQLRBfqLm2E5c7l/Zo tArPxaO4mxrUHaJ4BEzZxnONIqhRruMEch2XkOZdlfThptzxpUAf6g0gckDP5adMXx3/ +yAZ+gLPQi87tgKNnuALkyl25H8QYPa3/427gjTcfWz3QC26wwL5rCqB31kZ8UCW1BVR DGW+iOkPty1+ygOTmKJDxbcmX+1z8y++gQxAV29l1LquekTB4qx3FT5pNj6DT34opJfA CNXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Eq11tVHrOi3h74lVF2C84229MFNbVqYtuCq5hecmnu8=; b=qR052pRlgbQsxjuko6lbgEY5GLCon8/O1Xpi/nbD6tORLEU6WIefJ0Cm5RWVbQnhHT F+Z5DcsTbq0B7zVhLUqcuxlO/GCMSHl1+tV+6kRIweo4vj3i3T9ftBQ3rIq4g3anovCN 7HWMbx/T82Lx+Omgr0jBk1ARE4FoLZriE8eDvGILHJIaA/lyezlyC9gOdogsp9c9J3/l qWYomprL+/nmMXR+rxwJeEE9sNEUi6Rw3E9bWN8X5DGA5efqI+WOf23YcaXdtl6iI0Vz YQNrlOyvLWOVRxBOFiz5yAaQW7HL8C7Y/+qXLVzwhl+BIriQ9Tn2Jl+aGyu45Auq5lER a2iA== X-Gm-Message-State: AOAM533idp/z1sLvIYG5IgXVlOG/gB7ZH8+EerlLUsL2DnDnuS9P1N8x N4PHBqcdyOjnwn/n3KCMIuusrVVvZ48y7A== X-Google-Smtp-Source: ABdhPJwvwwKemeSk2UvNMenNq3O45irJHMn1o7gOTCvRE8O+R0P0Y57EzXiEEtSG/1D3ah3mQmvVHw== X-Received: by 2002:a05:6e02:16c7:: with SMTP id 7mr19029278ilx.202.1610920782666; Sun, 17 Jan 2021 13:59:42 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f13sm6885013iog.18.2021.01.17.13.59.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jan 2021 13:59:42 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 6798580083D; Sun, 17 Jan 2021 15:59:40 -0600 (CST) Date: Sun, 17 Jan 2021 15:59:40 -0600 From: Justin Pryzby To: pgsql-hackers@postgresql.org Subject: pg_collation_actual_version() ERROR: cache lookup failed for collation 123 Message-ID: <20210117215940.GE8560@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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