Re: DROP COLLATION vs pg_collation question
От | Tom Lane |
---|---|
Тема | Re: DROP COLLATION vs pg_collation question |
Дата | |
Msg-id | 3031360.1718570329@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: DROP COLLATION vs pg_collation question (Laurenz Albe <laurenz.albe@cybertec.at>) |
Ответы |
Re: DROP COLLATION vs pg_collation question
|
Список | pgsql-general |
Laurenz Albe <laurenz.albe@cybertec.at> writes: > On Sun, 2024-06-16 at 11:27 +0200, Karsten Hilbert wrote: >> Which in turn means I cannot at all truly _remove_ collations >> from a cluster at the SQL level, only make them invisible >> (and thereby not-to-be-used) inside a particular database by >> removing them from pg_collations via DROP COLLATION, right ? > As far as PostgreSQL is concerned, you can remove them. It's really kind of moot, since you can't change the encoding of an existing database. So any pg_collation entries that are for an incompatible encoding cannot be used for anything in that database, and they might as well not be there. The reason they are there is merely an implementation detail: CREATE DATABASE clones those catalogs from the single copy of pg_collation in template0, which therefore had better include all collations that might be needed. regards, tom lane
В списке pgsql-general по дате отправления: