Re: [TODO] Process pg_hba.conf keywords as case-insensitive
От
Florian Pflug
Тема
Re: [TODO] Process pg_hba.conf keywords as case-insensitive
Дата
Msg-id
7D70EE06-1E80-44D6-9428-5F60AD796D26@phlo.org
Ответ на
Re: [TODO] Process pg_hba.conf keywords as
case-insensitive (Kyotaro HORIGUCHI)
Список
Дерево обсуждения
[TODO] Process pg_hba.conf keywords as case-insensitive Viswanatham kirankumar <viswanatham.kirankumar@huawei.com>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Christoph Berg <cb@df7cb.de>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Tom Lane <tgl@sss.pgh.pa.us>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Christoph Berg <cb@df7cb.de>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Tom Lane <tgl@sss.pgh.pa.us>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Craig Ringer <craig@2ndquadrant.com>
Re: [TODO] Process pg_hba.conf keywords as
case-insensitive Viswanatham kirankumar <viswanatham.kirankumar@huawei.com>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Christoph Berg <cb@df7cb.de>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Heikki Linnakangas <hlinnakangas@vmware.com>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Christoph Berg <cb@df7cb.de>
Re: [TODO] Process pg_hba.conf keywords as
case-insensitive Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [TODO] Process pg_hba.conf keywords as
case-insensitive Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Florian Pflug <fgp@phlo.org>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Robert Haas <robertmhaas@gmail.com>
Re: [TODO] Process pg_hba.conf keywords as
case-insensitive Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [TODO] Process pg_hba.conf keywords as
case-insensitive Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [TODO] Process pg_hba.conf keywords as case-insensitive Michael Paquier <michael.paquier@gmail.com>
On Sep10, 2014, at 10:54 , Kyotaro HORIGUCHI wrote: > Under the new specifications, next_token will work as following, > > - USER : token: USER , case-insensitive > - "USeR" : token: USeR , case-SENSITIVE > - "+uSeR" : token: +uSeR , case-SENSITIVE > - "+UsE"R : token: +UsEr , case-insensitive > - U"S""e"R : token: US"eR , case-insensitive > > - +USER : token: USER , case-insensitive, group_name > - +"uSeR" : token: uSeR , case_SENSITIVE, group_name > - +U"sE""r" : token: UsE"r , case-insensitive, group_name > > - + : token: + , (useless?) > - @ : token: @ , (useless?) > - @ho"ge : token: ho"ge, file_inclusion (not confirmed) > > > There's a concern that Case-insensitive matching is accomplished > by full-scan on pg_database or pg_authid so it would be rather > slow than case-sensitive matching. This might not be acceptable > by the community. That does indeed sound bad. Couldn't we handle this the same way we handle SQL identifiers, i.e. simply downcase unquoted identifiers, and then compare case-sensitively? So foo, Foo and FOO would all match the user called , but "Foo" would match the user called , and "FOO" the user called . An unquoted "+" would cause whatever follows it to be interpreted as a group name, whereas a quoted "+" would simply become part of the user name (or group name, if there's an additional unquoted "+" before it). So +foo would refer to the group , +"FOO" to the group , and +"+A" to the group <+A>. I haven't checked if such an approach would be sufficiently backwards-compatible, though. best regards, Florian Pflug
В списке pgsql-hackers по дате отправления
От: Kyotaro HORIGUCHI
Дата: