Re: [9.1] pg_stat_get_backend_server_addr - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [9.1] pg_stat_get_backend_server_addr
Date
Msg-id 1279828886.16475.1.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: [9.1] pg_stat_get_backend_server_addr  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
On ons, 2010-07-21 at 22:12 -0700, Jeff Davis wrote:
> The two functions aren't perfectly symmetric, because 
> pg_stat_get_backend_server_port() returns -1 if it's a unix socket,
> and
> pg_stat_get_backend_server_addr() returns NULL (which is also
> overloaded
> to mean that you don't have permissions). So, perhaps it's better to
> just have pg_stat_get_backend_server_addr(), which is the one you
> want,
> anyway. 

This mirrors exactly the pg_stat_get_backend_client_* behaviors.  I
don't much like them either, but I think it'd be worse to make it
inconsistent.



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: need more ALTER TABLE guards for typed tables
Next
From: Kris Jurka
Date:
Subject: Re: [JDBC] Trouble with COPY IN