pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rory Campbell-Lange <rory@campbell-lange.net>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Guyren Howe <guyren@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Advice request : simultaneous function/data updates on many databases
Date: Thu, 5 Mar 2020 00:11:50 +0000
Message-ID: <20200305001150.GA16107@campbell-lange.net> (raw)
In-Reply-To: <CAKFQuwY4nqamv8xiKo3dzLa0dw4VL8UmVDoj8V7mwYh4i=sSzA@mail.gmail.com>
References: <7ce9074f-0468-1cc8-3337-018b66e56679@aklaver.com>
	<20200304222257.GA11376@campbell-lange.net>
	<42b4d82b-d468-3f9e-c021-c20bcc141245@aklaver.com>
	<20200304223342.GA11628@campbell-lange.net>
	<E34FAEFC-8F73-4AFF-966B-4E067CC78A34@gmail.com>
	<20200304224843.GA12333@campbell-lange.net>
	<CAKFQuwZ8DCJu9BYckq3AocCP3rkX-g=VvDLON2qnisBnOgofxQ@mail.gmail.com>
	<CAKFQuwZh-2pfr73XNUXg9CJtSDaVbiTOJYF4Dbre_6vs-JjcMA@mail.gmail.com>
	<20200304234159.GA14088@campbell-lange.net>
	<CAKFQuwY4nqamv8xiKo3dzLa0dw4VL8UmVDoj8V7mwYh4i=sSzA@mail.gmail.com>

On 04/03/20, David G. Johnston (david.g.johnston@gmail.com) wrote:
> On Wed, Mar 4, 2020 at 4:41 PM Rory Campbell-Lange <rory@campbell-lange.net>
> wrote:
> 
> > Any idea on how to run execute_dynamic across many databases at roughly
> > the same time?
> >
> > I'm just wondering if Guyren Howe's idea of having many transactions
> > open waiting for a clock time to commit is in fact feasible due to
> > (presumably) having to have all the connections open to every database
> > from the client until the transactions complete.
> >
> 
> Clock time synchronization is possible so its largely a matter of resources
> at that point.  If your servers are on machines where you can get shell
> having the server run psql on its own databases should provide sufficient.

Yes, that is how we do it at present. We'll have to do some tests.

> I'll go back to my earlier comment, on a separate line of thought, which
> may have been missed, in that having two commits involved here is probably
> a better option.  First commit is setup to allow both the old and new
> software to continue working normally.  The second commit then removes the
> functionality the older software versions are using - after they've been
> phased out.

I did miss that point; thanks for reiterating it.

I think the issue we will have with old/new coexistence is that we would
sometimes hit the "cannot find best candidate" function signature
problem, as we often extend existing function arguments with new
arguments with defaults.

But it is certainly something worth testing.

Thanks a lot for the pointers.






view thread (18+ messages)  latest in thread

Message-ID: <20200305001150.GA16107@campbell-lange.net>
Permalink:  ../20200305001150.GA16107@campbell-lange.net/
Also on:    postgresql.org/message-id/20200305001150.GA16107@campbell-lange.net

 · 

reply

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, david.g.johnston@gmail.com, guyren@gmail.com, adrian.klaver@aklaver.com
  Subject: Re: Advice request : simultaneous function/data updates on many databases
  In-Reply-To: <20200305001150.GA16107@campbell-lange.net>
  References: <7ce9074f-0468-1cc8-3337-018b66e56679@aklaver.com> <20200304222257.GA11376@campbell-lange.net> <42b4d82b-d468-3f9e-c021-c20bcc141245@aklaver.com> <20200304223342.GA11628@campbell-lange.net> <E34FAEFC-8F73-4AFF-966B-4E067CC78A34@gmail.com> <20200304224843.GA12333@campbell-lange.net> <CAKFQuwZ8DCJu9BYckq3AocCP3rkX-g=VvDLON2qnisBnOgofxQ@mail.gmail.com> <CAKFQuwZh-2pfr73XNUXg9CJtSDaVbiTOJYF4Dbre_6vs-JjcMA@mail.gmail.com> <20200304234159.GA14088@campbell-lange.net> <CAKFQuwY4nqamv8xiKo3dzLa0dw4VL8UmVDoj8V7mwYh4i=sSzA@mail.gmail.com> <20200305001150.GA16107@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