Process pg_hba.conf keywords as case-insensitive - Mailing list pgsql-hackers

From Андрей Асякин
Subject Process pg_hba.conf keywords as case-insensitive
Date
Msg-id CAFnzpOU=31Usg7Jx+QYGLmB2xtCLp9rfBgMezk+QjMgq4PZd9w@mail.gmail.com
Whole thread Raw
Responses Re: Process pg_hba.conf keywords as case-insensitive  (Robert Haas <robertmhaas@gmail.com>)
List 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

pgsql-hackers by date:

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