Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdO6n-0008WJ-7y for pgsql-general@arkaria.postgresql.org; Wed, 11 Jul 2018 23:01:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdO6l-0005zC-Aa for pgsql-general@arkaria.postgresql.org; Wed, 11 Jul 2018 23:01:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdO6l-0005ym-1N for pgsql-general@lists.postgresql.org; Wed, 11 Jul 2018 23:01:15 +0000 Received: from mail-oi0-x244.google.com ([2607:f8b0:4003:c06::244]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fdO6i-0002NZ-9x for pgsql-general@lists.postgresql.org; Wed, 11 Jul 2018 23:01:14 +0000 Received: by mail-oi0-x244.google.com with SMTP id v8-v6so52352477oie.5 for ; Wed, 11 Jul 2018 16:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=dO7OWG+MBEh++WmtPaeuzLm2n3OyvmAXUzz+Oe037E8=; b=EME+Dcvdg6G2digUwbvIPmqIEZ1UAOj7NIvuVvzuPUod7l5sUJl5Rst5NoVL4GbfJX OmhXQ9OAzOb3GyCeG9/FcdapSXp6mHos7FvjXRnxZVwYKS1tq3k76Lj1weB2FjmsJW8T KC4qHL4/2asBgsvmK3/u9wKonh6LPyt+vLt+3rCvY4+96VpIyQZ+Onj7h+Um+ylZCTbs bX/P2w2Bdd4GZr2/OBCyfNXOnjzwnEBNkpx0sE9mKqCbNj2omoNFjD6bGFDYFmKPMGK9 7EGyHlDoMyxvZwwmm/f4Q0iUzsCScxdkEb5VevvD8VntPVkooXO8MARfij/OWv9AtMmW Go8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=dO7OWG+MBEh++WmtPaeuzLm2n3OyvmAXUzz+Oe037E8=; b=Gh3cOGi7XPSSr/zqhOuOMi9sBKRxz2PKSCjgB90Bcu9QIgHWVR6fbuYmgj9i2z5bUr vxkj3pjXcaYdhUNr/wLAbR09XW2Je7++v3ZMm1r6f0LXQOotDgINYtot+L2cE/XmMuyl 9MCQ39VUAtKYmOq88Mz4MS0jKZYA4rNYdOqDLy3JQOmAQf10B0w/4XAgEt241pEHRl6S fTst/ydsn9/D1zj5WfHKMT4OjpTILcjSMZYdd2jgZonHZV4k8akjNUdQHJK+86cofbWq QpG9ZsXb2v9SSbpdLkJhZ4kjVFhEvijvsbF0z5LapqKIRM1H+4XFJDbAQAcSjYP5jmk5 KgnQ== X-Gm-Message-State: AOUpUlHOgG4cv03vrzy3c0gd7G7w1JU+MrYqeHJOan+AHto9pJcFtV8o uKbCHMtzifJh+QADsFsl1ZfATQ== X-Google-Smtp-Source: AAOMgpf7zjDECk3+2YAPohhn7YQkT5F6DeNLDDg+y+zYOXe4FJ+tUM1/I1O43DscVm/nAxwSR9YknA== X-Received: by 2002:aca:bcc1:: with SMTP id m184-v6mr627556oif.19.1531350070183; Wed, 11 Jul 2018 16:01:10 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id y85-v6sm12816341oie.25.2018.07.11.16.01.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 16:01:09 -0700 (PDT) Subject: Re: Open Source tool to deploy/promote PostgreSQL DDL To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <9661ccd5-fe28-26fc-043b-680e020e6455@gmail.com> Date: Wed, 11 Jul 2018 18:01:08 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 07/11/2018 04:10 PM, Christopher Browne wrote: [snip] > 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. Does "rollback script" truly mean undoing what you just did in a transaction-like manner? -- Angular momentum makes the world go 'round.