Re: [ADMIN] host name?

2007-02-27 Thread Achilleas Mantzios
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Neyman Sent: Monday, February 26, 2007 10:29 AM To: pgsql-admin@postgresql.org Subject: [ADMIN] host name? Is there a function (or catalog view) that I can call in psql and that will tell

[ADMIN] host name?

2007-02-26 Thread Igor Neyman
Is there a function (or catalog view) that I can call in psql and that will tell me host name of the machine on which Postgres database is running? Igor

Re: [ADMIN] host name?

2007-02-26 Thread Andy Shellam (Mailing Lists)
Igor Neyman wrote: Is there a function (or catalog view) that I can call in psql and that will tell me host name of the machine on which Postgres database is running? Igor Surely you need to know this to connect to it in the first place?

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
-admin@postgresql.org Subject: [ADMIN] host name? Is there a function (or catalog view) that I can call in psql and that will tell me host name of the machine on which Postgres database is running? Igor

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Shellam (Mailing Lists) Sent: Monday, February 26, 2007 10:56 AM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? Igor Neyman wrote: Is there a function (or catalog view) that I can call

Re: [ADMIN] host name?

2007-02-26 Thread Ray Stell
Lists) Sent: Monday, February 26, 2007 10:56 AM To: Igor Neyman Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? Igor Neyman wrote: Is there a function (or catalog view) that I can call in psql and that will tell me host name of the machine on which Postgres database

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
Neyman Cc: Andy Shellam (Mailing Lists); pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? not sure how to resolve the name, but maybe this is close enough: select usename, client_addr from pg_catalog.pg_stat_activity; On Mon, Feb 26, 2007 at 11:47:13AM -0500, Igor Neyman wrote: You

Re: [ADMIN] host name?

2007-02-26 Thread Igor Neyman
To: Igor Neyman Cc: Andy Shellam (Mailing Lists); pgsql-admin@postgresql.org Subject: Re: [ADMIN] host name? not sure how to resolve the name, but maybe this is close enough: select usename, client_addr from pg_catalog.pg_stat_activity; On Mon, Feb 26, 2007 at 11:47:13AM -0500, Igor Neyman wrote

Re: [ADMIN] host name?

2007-02-26 Thread Peter Eisentraut
Igor Neyman wrote: But besides having ip address (instead of machine name), it doesn't have clent program name connected to PG. That information is not available to the server. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of