Re: Why do indexes and sorts use the database collation? - Mailing list pgsql-hackers

From Laurenz Albe
Subject Re: Why do indexes and sorts use the database collation?
Date
Msg-id 87b3c6950f44aba032f6bbc92c66d1387ece2133.camel@cybertec.at
Whole thread Raw
In response to Re: Why do indexes and sorts use the database collation?  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
List pgsql-hackers
On Mon, 2023-11-13 at 22:36 +0100, Tomas Vondra wrote:
> Perhaps we could allow the PK index to have a different collation, say
> by supporting something like this:
>
>   ALTER TABLE distributors ADD PRIMARY KEY (dist_id COLLATE "C");

An appealing idea!  While at it, we could add an INCLUDE clause...

The risk here would be extending standard syntax in a way that might
possibly conflict with future changes to the standard.

Yours,
Laurenz Albe



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Fix output of zero privileges in psql
Next
From: Bharath Rupireddy
Date:
Subject: Re: add log messages when replication slots become active and inactive (was Re: Is it worth adding ReplicationSlot active_pid to ReplicationSlotPersistentData?)