Re: How to store version number of database layout

From: "Karsten Hilbert" <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How to store version number of database layout
Date: 2013-02-12 14:32:57
Message-ID: 20130212143257.27230@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> It's more like a question of best practice:
> How do you managing different version of database layout for e.g.
> software releases?
> We are planing to do an application based on postgres and want to store
> some version number of database layout to ensure correct upgrade-scripts
> can be applied in case of an upgrade. Is there any build in for?

We (www.gnumed.de) generate the md5 of a concatenation of the database
layout (tables/columns/PKs) which the client checks against and disconnects
if there's a mismatch.

Karsten

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Carlo Stonebanks 2013-02-12 14:33:43 Re: Tcl & PG on Win 7 64 bit - is it working for anyone?
Previous Message Magnus Hagander 2013-02-12 13:28:26 Re: PG V9 on NFS