| From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
| Cc: | frank_limpert(at)yahoo(dot)com |
| Subject: | ALTER COLLATION ... REFRESH VERSION - sample script outdated |
| Date: | 2021-05-21 10:22:14 |
| Message-ID: | 162159253478.13685.8891467480521577037@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
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$;
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2021-05-21 13:26:14 | Re: more detailed description of tup_returned and tup_fetched |
| Previous Message | Laurenz Albe | 2021-05-21 08:52:42 | Re: Additional Chapter for Tutorial |