Re: Updating database structure

From: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
To:
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Updating database structure
Date: 2006-03-23 16:34:16
Message-ID: 4422CE08.8030203@startnet.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I accidentaly came across this post. I didn't follow it so I don't know whether my posting is to the topic or not. I've just uploaded project at SourceForge.Net on topic of PostgreSQL database schema upgrades because I needed to find out differences between current and new schemas. The project is called apgdiff (Another PostgreSQL Diff Tool) and can be found at apgdiff.sourceforge.net. It is still in beta but might be useful.

Sorry if this post is not to the topic.

Miroslav Šulc

Alban Hertroys napsal(a):
> Guido Neitzer wrote:
>> I mostly use the command line tools or a graphical tool to make my
>> own sql calls for every schema change I make on the development
>> database.
>>
>> Then all these changes come to a "script" in my application (it's
>> not actually a script but similar). The database has a version tag
>> in one table. The application has a bunch of these "scripts" to
>> convert from one version to another. It knows the sequence in how
>> they have to be applied by looking at the version numbers.
>
> Looks like it could be useful to make the database 'log' the DDL
> statements and having the ability to export those to a script starting
> from a certain version.
>
> It would probably still need user intervention, as sometimes
> experiments and mistakes require fixing things - which would result in
> bogus or non-optimal DDL statements in the log.
>
> There's also sometimes the need to update data between statements, for
> example when adding a new NOT NULL column to a table. Not sure what to
> do in that case. Automating that would require some server side
> 'intelligence'...
>
> Regards,
>

Attachment Content-Type Size
miroslav.sulc.vcf text/x-vcard 349 bytes

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2006-03-23 16:37:26 SELECT beer FROM pub WHERE location = 'Europe'
Previous Message Andreas Kretschmer 2006-03-23 16:21:38 Re: Logging of sql statements?