pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki@enterprisedb.com>
To: antongiulio05@gmail.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Authentication trick
Date: Fri, 01 Dec 2006 09:31:47 +0000
Message-ID: <456FF683.7030705@enterprisedb.com> (raw)
In-Reply-To: <20061130191032.fe2311a9.www.gmail.com@localhost.localdomain>
References: <20061130191032.fe2311a9.www.gmail.com@localhost.localdomain>

antongiulio05@gmail.com wrote:
> Hi,
> 
> 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.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (9+ messages)  latest in thread

Message-ID: <456FF683.7030705@enterprisedb.com>
Permalink:  ../456FF683.7030705@enterprisedb.com/
Also on:    postgresql.org/message-id/456FF683.7030705@enterprisedb.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: heikki@enterprisedb.com, antongiulio05@gmail.com
  Subject: Re: Authentication trick
  In-Reply-To: <456FF683.7030705@enterprisedb.com>
  References: <20061130191032.fe2311a9.www.gmail.com@localhost.localdomain> <456FF683.7030705@enterprisedb.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