From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Dirk Mika <Dirk.Mika@mikatiming.de>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Set COLLATE on a session level
Date: Fri, 20 Nov 2020 12:31:42 +0100
Message-ID: <9fd0eef06639e633e258461e5baad9734bcbc1ba.camel@cybertec.at> (raw)
In-Reply-To: <0DDE56FB-89A8-4621-BF5E-8CE3461F4983@mikatiming.de>
References: <0DDE56FB-89A8-4621-BF5E-8CE3461F4983@mikatiming.de>
On Fri, 2020-11-20 at 07:13 +0000, Dirk Mika wrote:
> we come from the Oracle world and we have an application that, depending on a setting,
> sends the command ALTER SESSION SET 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 the statements in the client and statements that are
> automatically generated by the database components used, would not be affected.
There is no way to do that in PostgreSQL.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, Dirk.Mika@mikatiming.de
Subject: Re: Set COLLATE on a session level
In-Reply-To: <9fd0eef06639e633e258461e5baad9734bcbc1ba.camel@cybertec.at>
References: <0DDE56FB-89A8-4621-BF5E-8CE3461F4983@mikatiming.de> <9fd0eef06639e633e258461e5baad9734bcbc1ba.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox