public inbox for [email protected]  
help / color / mirror / Atom feed
DROP COLLATION vs pg_collation question
2+ messages / 2 participants
[nested] [flat]

* DROP COLLATION vs pg_collation question
@ 2024-06-11 21:15  Karsten Hilbert <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Karsten Hilbert @ 2024-06-11 21:15 UTC (permalink / raw)
  To: [email protected]

Dear list members,

maybe a naive question but I was unable to find an answer in
the fine manual (sv_SE being an example)

Does running

	DROP COLLATION IF EXISTS pg_catalog."sv_SE"

also remove the corresponding row from pg_collation (assuming
nothing depends on collation sv_SE) ?

Experimentation seems to hint that way but I was unable to
confirm.

Thanks
Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: DROP COLLATION vs pg_collation question
@ 2024-06-12 07:03  Laurenz Albe <[email protected]>
  parent: Karsten Hilbert <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Laurenz Albe @ 2024-06-12 07:03 UTC (permalink / raw)
  To: Karsten Hilbert <[email protected]>; [email protected]

On Tue, 2024-06-11 at 23:15 +0200, Karsten Hilbert wrote:
> maybe a naive question but I was unable to find an answer in
> the fine manual (sv_SE being an example)
> 
> Does running
> 
> 	DROP COLLATION IF EXISTS pg_catalog."sv_SE"
> 
> also remove the corresponding row from pg_collation (assuming
> nothing depends on collation sv_SE) ?
> 
> Experimentation seems to hint that way but I was unable to
> confirm.

Yes, that will delete a row from "pg_collation".  System catalogs
like "pg_collation" is where the database metadata are actually
stored.

Note that with DROP COLLATION you can only remove collations
that belong to the encoding of your current database.

Yours,
Laurenz Albe






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-06-12 07:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-06-11 21:15 DROP COLLATION vs pg_collation question Karsten Hilbert <[email protected]>
2024-06-12 07:03 ` Laurenz Albe <[email protected]>

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