Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and --lc-collate

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-committers <pgsql-committers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and --lc-collate
Date: 2020-02-27 14:25:20
Message-ID: 20200227142520.GA4703@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 2020-Feb-27, Michael Paquier wrote:

> Now looking at the code of OpenBSD there could be an
> alternative: using a string longer than 256 characters if I read
> lib/libc/locale/setlocale.c correctly, but I'd rather not rely on
> that.

That seems awfully fragile. Belated +1 for not relying on that :-)

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2020-02-27 16:23:58 pgsql: Record parents of triggers
Previous Message Michael Paquier 2020-02-27 13:01:27 Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and --lc-collate