Skip site navigation (1) Skip section navigation (2)

keywords in initdb are case-sensitive?

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: keywords in initdb are case-sensitive?
Date: 2012-02-02 04:45:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
In miracee's review of Peter's patch for new -A options in initdb (in
commitfest app only), it is noted that pg_hba.conf keyword parsing is
done in a case sensitive manner.  So if you write "Trust" rather than
"trust", it's not recognized.

This seemed pretty nonsensical to me, and it's not documented, so I came
up with the trivial attached patch.

Comparisons to user and database names and the like are unchanged and
thus require matching case.


Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>

Attachment: hba-casecmp.patch
Description: application/octet-stream (8.8 KB)


pgsql-hackers by date

Next:From: Simon RiggsDate: 2012-02-02 06:19:23
Subject: Re: Refactoring log_newpage
Previous:From: Alvaro HerreraDate: 2012-02-02 04:33:13
Subject: freezing multixacts

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group