Re: BUG #5431: CREATE USER is not case sensitive, but psql command line arguments are

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5431: CREATE USER is not case sensitive, but psql command line arguments are
Дата
Msg-id 8084.1271718050@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5431: CREATE USER is not case sensitive, but psql command line arguments are  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-bugs
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Alvaro Herrera <alvherre@commandprompt.com> wrote:
>> you'd be required to type something like
>> psql \"nEWuSer\"

> Although we do that with some command-line arguments, like the
> pg_dump -t switch.  Not arguing for any particular course here, just
> noting the inconsistency.

Right.  -t is like that because it requires parsing anyway: you can type
either -t tablename or -t schema.tablename, and so there has to be some
quoting convention or you couldn't deal with names with embedded dots
(not to mention the possibility of wanting to quote a wildcard
character).  In places where a command-line argument is just a name,
though, we've chosen to interpret it literally rather than introduce
quoting issues.

Short answer is that the inconsistencies in this area are intentional.
Ideally it'd be better not to have them, but in practice things are more
convenient with them, because of the conflicts between SQL and shell
quoting conventions.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Reset ACL to default for pg 8.0
Следующее
От: Abhishek Maurya
Дата:
Сообщение: query related to pgsql