From: | John DeSoi <desoi(at)pgedit(dot)com> |
---|---|
To: | "David A(dot) Leedom" <daleedom(at)hightowergroup(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Automatic Backups |
Date: | 2005-04-10 14:46:51 |
Message-ID: | 5FE5D201-A9CF-11D9-92FA-000A95B03262@pgedit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Apr 8, 2005, at 4:00 PM, David A. Leedom wrote:
> I found that the registry entries use a GUID product code on the final
> node of the registry. Is there any way to link this back to the
> running database?
>
> I could hard code the product codes into my backup app. If for some
> reason there are more than one Postgres installs on one system would
> there be a way to determine the product code of the database I am
> backing up via the connect string? (System tables/variables?)
>
> Another possibility is that I could include the pg_dump/restore
> utilities with the backup app and set it up to only backup databases
> of the correct version.
>
One idea is to use "pg_ctl.exe status" to determine if the server
associated with the registry entry is running. I think you'll also need
to specify the data directory with this command, so hopefully that is
in the registry also.
John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2005-04-10 19:51:57 | Re: Automatic Backups |
Previous Message | Kelly Kane | 2005-04-10 13:06:15 | Problem Postgres importation of sql file |