Skip site navigation (1) Skip section navigation (2)

Re: host name?

From: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: host name?
Date: 2007-02-27 08:15:34
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
Στις Δευτέρα 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(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Igor Neyman
> Sent: Monday, February 26, 2007 10:29 AM
> To: pgsql-admin(at)postgresql(dot)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

In response to

pgsql-admin by date

Next:From: Johann SpiesDate: 2007-02-27 08:34:37
Subject: Warm standby
Previous:From: Anu Gupta DCSADate: 2007-02-27 08:05:19
Subject: A Reminder : A Survey on Defect Management Practices in Free/Open Source Software

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group