> some commercial softwares use a trick to avoid copy of a db, license-crack, etc. They use generate a key -> "ID of db-instance". For example, if you dump a db on other machine with postgres installed, this key will be different and so application will not start.
PostgreSQL is not commercial, so there's no need for such artificial
restrictions. There is, however, a unique system_identifier in
pg_control file that's generated when initdb is run. It's used on WAL
replay to check that the WAL logs were generated by the same installation.
> It was good for Oracle, DB2 and MS-SQL. Is there a "similar key" for Postgres? Is it possible retrieve it via-jdbc? How?
There's no way to retrieve system_identifier from the client.
In response to
pgsql-jdbc by date
|Next:||From: Csaba Nagy||Date: 2006-12-01 09:35:37|
|Subject: Re: Backup with Java|
|Previous:||From: Kris Jurka||Date: 2006-12-01 09:28:24|
|Subject: Re: XA end then join fix for WebLogic|