From: | Christopher Browne <cbbrowne(at)gmail(dot)com> |
---|---|
To: | ronljohnsonjr(at)gmail(dot)com |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Open Source tool to deploy/promote PostgreSQL DDL |
Date: | 2018-07-11 21:10:06 |
Message-ID: | CAFNqd5UprA2-HukVj50e8yFD1CQJKDeB=xNN4HVtBGuSLmNa4g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 11 Jul 2018 at 16:37, Ron <ronljohnsonjr(at)gmail(dot)com> wrote:
>
> On 07/11/2018 03:21 PM, Christopher Browne wrote:
> > I have built one that I call Mahout
> > (https://github.com/cbbrowne/mahout) which has the merit of involving
> > just two shell scripts, one of which is an auditing tool (pgcmp).
> >
> > It implements a "little language" to indicate dependencies between the
> > SQL scripts that implement the DDL changes.
> >
> > The notable thing that I have seen "downthread" that it does not
> > attempt to implement is "rollback scripts." I find that "necessity"
> > to be a ruby-on-rails dogma that does not seem to fit what I see
> > people doing.
>
> Where I work, the requirement to have rollback scripts is part of the ITIL
> requirement for Changes to have a backout procedure.
ITIL surely does NOT specify the use of database rollback scripts as
THE SPECIFIED MECHANISM for a backout procedure.
In practice, we tend to take database snapshots using filesystem
tools, as that represents a backout procedure that will work regardless
of the complexity of an upgrade.
It is quite possible for an upgrade script to not be reversible.
After all, not all matrices are invertible; there are a surprisingly large
number of preconditions that are required for that in linear algebra.
And in databases, not all upgrades may be reversed via rollback scripts.
--
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2018-07-11 21:14:39 | Re: timestamp (military) at time zone without the suffix |
Previous Message | Igal @ Lucee.org | 2018-07-11 21:08:41 | Re: How to tell which event was fired in Trigger function |