Re: libpq PGHOST - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq PGHOST
Date
Msg-id 6432.970515392@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq PGHOST  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: libpq PGHOST  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Jim Mercer
Date:
Subject: off-topic: (sorta) freebsd -> oracle, lightweight
Next
From: "Mitch Vincent"
Date:
Subject: Re: off-topic: (sorta) freebsd -> oracle, lightweight