Re: libpq PGHOST

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq PGHOST
Дата
Msg-id 6432.970515392@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq PGHOST  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: libpq PGHOST  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> If we were to sort this out, then I think we'd need to change
> PQsetdbLogin() to take empty arguments uniformly "as is", and make the
> change to make Unix sockets also with an empty host parameter, as
> proposed.  Then you could use psql -h '' to request a Unix socket
> explicitly.

Seems reasonable.

> peter=# create function "" () returns int as 'select 42' language 'sql';
> CREATE
> peter=# select ""();
> ----
>  42
> (1 row)

> That was probably not the plan.

I don't see any clear statement in SQL92 that <delimited identifiers>
can't have zero length, so I'm not convinced there's anything wrong here.
        regards, tom lane


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

Предыдущее
От: Jim Mercer
Дата:
Сообщение: off-topic: (sorta) freebsd -> oracle, lightweight
Следующее
От: "Mitch Vincent"
Дата:
Сообщение: Re: off-topic: (sorta) freebsd -> oracle, lightweight