From: Rory Campbell-Lange <rory@campbell-lange.net>
To: pgsql-general@postgresql.org
Subject: Re: Advice request : simultaneous function/data updates on many databases
Date: Thu, 5 Mar 2020 20:52:38 +0000
Message-ID: <20200305205238.GC554@campbell-lange.net> (raw)
In-Reply-To: <20200304220426.GB7232@campbell-lange.net>
References: <20200304220426.GB7232@campbell-lange.net>
On 04/03/20, Rory Campbell-Lange (rory@campbell-lange.net) wrote:
> We have many databases of the same type separated for data governance
> reasons. They, however, share the same web front-end code.
>
> Presently, replacing functions and performing data updates on the
> databases in series often executes across all databases in less than a
> minute. (The updates are currently done with simple sql files connecting
> to each database and then loading a stub file pointing to each function
> to drop and reload, and running the data update queries.)
>
> However, for larger updates, the time when the front end code is
> out-of-step with the database can cause end-user problems.
For information, following the very helpful advice here, we intend to
proceed as follows, using a rolling upgrade methodology:
for each database:
* upgrade the functions and sql
* on success, callout haproxy to switch the client from web code
version old to new
* else investigate the upgrade failure
We're planning to use postgres for recording state.
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-general@postgresql.org
Cc: rory@campbell-lange.net
Subject: Re: Advice request : simultaneous function/data updates on many databases
In-Reply-To: <20200305205238.GC554@campbell-lange.net>
References: <20200304220426.GB7232@campbell-lange.net> <20200305205238.GC554@campbell-lange.net>
* 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