Re: libpq PGHOST

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq PGHOST
Date: 2000-10-02 19:36:32
Message-ID: 6432.970515392@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-10-02 19:39:46 What's happening with pgsql-committers?
Previous Message Peter Eisentraut 2000-10-02 19:07:58 Re: libpq PGHOST