Re: Set COLLATE on a session level

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Set COLLATE on a session level
Дата
Msg-id 98a8cdc2-ed4b-616c-7370-3d5e5ccb8f91@enterprisedb.com
обсуждение исходный текст
Ответ на Set COLLATE on a session level  (Dirk Mika <Dirk.Mika@mikatiming.de>)
Ответы Re: Set COLLATE on a session level  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 2020-11-20 08:13, Dirk Mika wrote:
> we come from the Oracle world and we have an application that, depending on a setting, sends the command ALTER
SESSIONSET NLS_SORT=... when connecting to the database.
 
> 
> Is there a similar way to set a COLLATE for a session in PostgreSQL?
> 
> I know that I can specify a COLLATE for a SELECT statement in the ORDER BY Clause, but then I would have to adjust
thestatements in the client and statements that are automatically generated by the database components used, would not
beaffected.
 

There is a SET COLLATION command in the SQL standard that does this. 
Someone just has to implement it.  It wouldn't be terribly difficult, I 
think.



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Accessing Postgres Server and database from other Machine
Следующее
От: Paul Förster
Дата:
Сообщение: Re: Accessing Postgres Server and database from other Machine