public inbox for [email protected]  
help / color / mirror / Atom feed
From: PG Doc comments form <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: ALTER COLLATION ... REFRESH VERSION - sample script outdated
Date: Fri, 21 May 2021 10:22:14 +0000
Message-ID: <[email protected]> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/sql-altercollation.html
Description:

The sample script that is given in section "Notes" finds only libc
collations. If you omit joining "pg_depend" you also find outdated ICU
collations. Like this:

DO  $BODY$
DECLARE
    r   RECORD;
BEGIN
    FOR r IN (
        SELECT n.nspname, c.collname
          FROM pg_collation c JOIN pg_namespace n ON c.collnamespace =
n.oid
         WHERE c.collversion <> pg_collation_actual_version(c.oid)
    ) LOOP
        EXECUTE format('ALTER COLLATION %I.%I REFRESH VERSION;', r.nspname,
r.collname);
        RAISE NOTICE 'ALTER COLLATION %.% REFRESH VERSION;', r.nspname,
r.collname;
    END LOOP;
END;
$BODY$;


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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: ALTER COLLATION ... REFRESH VERSION - sample script outdated
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox