| From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
|---|---|
| To: | Mark Fenbers <Mark(dot)Fenbers(at)noaa(dot)gov> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Does PG have a database |
| Date: | 2006-05-23 05:39:10 |
| Message-ID: | Pine.LNX.4.44.0605230838060.482-100000@matrix.gatewaynet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
O Mark Fenbers έγραψε στις May 22, 2006 :
> I have working PostgreSQL databases on 3 of my ~30 Linux boxes. I want
> my software to be able to determine which of my 30 boxes have functional
> databases on them. Since Pg is part of the baseline distro, merely
> checking for the existence of an executable doesn't solve my problem.
>
> I tried looping through my list of hosts and running the command:
> psql -h $host --list
> but this fails on a box with a database with the same error code as on a
> box that doesn't have a database, if my PGUSER isn't set and my login ID
> is not the username of the database. The PGUSER setting might differ
> for each host, so specifying this in the software is not practical.
>
> Bottom line: What trick can I use to determine whether a box has a
> living, breathing Pg database if I don't know the DB owner?
Use a net mgmt tool (like opennms).
netcat, telnet to 5432, etc...
>
> Mark
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
--
-Achilleus
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Page | 2006-05-23 12:06:12 | Re: some error when executing query in pgAdmin tool |
| Previous Message | Penchalaiah P. | 2006-05-23 05:02:12 | i need information regarding schema |