pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Marshall <ktm@rice.edu>
To: Chris Withers <chris@withers.org>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: surprisingly slow creation of gist index used in exclude constraint
Date: Fri, 15 May 2020 08:13:11 -0500
Message-ID: <20200515131311.GR20002@aart.rice.edu> (raw)
In-Reply-To: <b54cfc63-f5bf-279a-30ee-615c0681e687@withers.org>
References: <789b3464-9bfc-2157-f4f4-71eb1da1050d@withers.org>
	<20200514151653.Horde.pMpsKZFmvfY6NTOOhfRssA2@webmail.rice.edu>
	<b54cfc63-f5bf-279a-30ee-615c0681e687@withers.org>

> >
> >Hi Chris,
> >
> >This sounds like a candidate for pg_logical replicating from the
> >old to new system.
> 
> Can you point me to a good guide as to how to easily set this up for
> one database and would work between pg 9.4 and pg 11.5?
> 
> cheers,
> 
> Chris

Hi Chris,

Here is on for 9.4 to 10.3:

https://hunleyd.github.io/posts/Upgrading-PostgreSQL-from-9.4-to-10.3-with-pglogical/

and another article:

https://www.depesz.com/2016/11/08/major-version-upgrading-with-minimal-downtime/

It is a pretty straightforward procedure and really cuts the time needed
for an upgrade. Although, as Tom mentioned maybe just bumping your
maintenance_work_mem up to 1g or so may make the index create time
reasonable.

Regards,
Ken





view thread (8+ messages)  latest in thread

Message-ID: <20200515131311.GR20002@aart.rice.edu>
Permalink:  ../20200515131311.GR20002@aart.rice.edu/
Also on:    postgresql.org/message-id/20200515131311.GR20002@aart.rice.edu

 · 

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: ktm@rice.edu, chris@withers.org
  Subject: Re: surprisingly slow creation of gist index used in exclude constraint
  In-Reply-To: <20200515131311.GR20002@aart.rice.edu>
  References: <789b3464-9bfc-2157-f4f4-71eb1da1050d@withers.org> <20200514151653.Horde.pMpsKZFmvfY6NTOOhfRssA2@webmail.rice.edu> <b54cfc63-f5bf-279a-30ee-615c0681e687@withers.org> <20200515131311.GR20002@aart.rice.edu>

* 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