From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Subject: Re: host name?
Date: Tue, 27 Feb 2007 10:15:34 +0200
Message-ID: <200702271015.35320.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <F4C27E77F7A33E4CA98C19A9DC6722A201ADF679@EXCHANGE.corp.perceptron.com>
References: <F4C27E77F7A33E4CA98C19A9DC6722A201ADF5FD@EXCHANGE.corp.perceptron.com>
<F4C27E77F7A33E4CA98C19A9DC6722A201ADF679@EXCHANGE.corp.perceptron.com>
Στις Δευτέρα 26 Φεβρουάριος 2007 18:20, ο/η Igor Neyman έγραψε:
> And one more question.
> Is there a way (function/view) to find machine name on which user
> program (connected to Postgres) runs?
You could write a stored procedure
in plsh which simply returns the result of /bin/hostname
>
> Igor
>
> ________________________________
>
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] 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 me host name of the machine on which Postgres database is
> running?
>
> Igor
--
Achilleas Mantzios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: host name?
In-Reply-To: <200702271015.35320.achill@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox