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
|
Список | 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 по дате отправления: