clean up obsolete initdb locale handling

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: clean up obsolete initdb locale handling
Date: 2019-08-08 14:27:25
Message-ID: eeaf2f99-a1a6-8aca-3f43-9ab0b2fb112a@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

A long time ago, we changed LC_COLLATE and LC_CTYPE from cluster-wide to
per-database (61d967498802ab86d8897cb3c61740d7e9d712f6). There is some
leftover code from that in initdb.c and backend/main/main.c to pass
these environment variables around in the expectations that the backend
will write them to pg_control during bootstrap, which is of course all a
lie now.

The attached patch cleans that up. (Not totally sure about the WIN32
block, but the change seems good to me.)

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-initdb-Remove-obsolete-locale-handling.patch text/plain 3.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2019-08-08 14:47:47 Re: PG_TRY()/CATCH() in a loop reports uninitialized variables
Previous Message Chapman Flack 2019-08-08 14:22:45 Re: Locale support