From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | <jd(at)commandprompt(dot)com>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_hba.conf and IP-MASK |
Date: | 2004-08-22 08:44:57 |
Message-ID: | 4394.24.211.141.25.1093164297.squirrel@www.dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian said:
> Joshua D. Drake wrote:
>> Bruce Momjian wrote:
>>
>> >We have an IP-MASK column in pg_hba.conf. Now that we are using CIDR
>> >addresses by default, should we remove the column label?
>> >
>> >
>> >
>> I would mark it optional.
>
> We could do that, but we could use the space if we removed it. One
> other confusing thing is that it isn't the last column in the row, so
> it is optional only if you used CIDR format --- kind of strange.
>
The syntax rule (debated at length around May last year when this work was
done) is that you have to have either addr/nn for CIDR format or
addr<space>mask for the old-style format - both are documented in
ph_hba.conf and in the docs. So in fact the IP-MASK column is not optional
at all - it must be present if, and only if, you did not use a CIDR mask.
Since our defaults don't use old-style masks any more, I would be tempted to
remove the column labels for IP-ADDRESS and IP-MASK, and instead put in a
single heading of IP-ADDRESS/CIDR-MASK. If people want to use old-style
masks there is plenty of info on how to, without extra column headings.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Shachar Shemesh | 2004-08-22 11:09:38 | Compilation problems and extension on Windows |
Previous Message | Philip Warner | 2004-08-22 04:51:18 | Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE |
From | Date | Subject | |
---|---|---|---|
Next Message | Mahmoud Taghizadeh | 2004-08-22 13:24:29 | monetrary prblem |
Previous Message | Philip Warner | 2004-08-22 04:51:18 | Re: [PATCHES] ALTER SCHEMA ... SET TABLESPACE |