Process pg_hba.conf keywords as case-insensitive

From: Андрей Асякин <asan999(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Process pg_hba.conf keywords as case-insensitive
Date: 2015-10-08 11:36:39
Message-ID: CAFnzpOU=31Usg7Jx+QYGLmB2xtCLp9rfBgMezk+QjMgq4PZd9w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi!
This is my first post to this list.
(Sorry for my bad english)

I decided to start small, but as it is in the TODO, then why not.

In TODO:
> Process pg_hba.conf keywords as case-insensitive
>http://archives.postgresql.org/pgsql-hackers/2009-09/msg00432.php

It seems to me reasonable to throw an error saying 'ALL' is not a valid
value and * not * reload the pg_hba.conf file.

It seems a good place parse_hba_line in src/backend/libpq/hba.c, and
use strcasecmp
for checks.

Patch attached, if is very simple,

Attachment Content-Type Size
hba.patch text/x-patch 2.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-10-08 11:38:51 Re: Proposal: pg_confcheck - syntactic & semantic validation of postgresql configuration files
Previous Message Andreas 'ads' Scherbaum 2015-10-08 11:29:45 Re: Small documentation fix in src/interfaces/ecpg/preproc/po/pt_BR.po