pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Denis Laxalde <denis.laxalde@dalibo.com>
Cc: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: [PATCH] Disable bgworkers during servers start in pg_upgrade
Date: Sat, 28 Aug 2021 10:40:42 +0900
Message-ID: <YSmUGhShJBBIcyZb@paquier.xyz> (raw)
In-Reply-To: <20210827192842.7wef2zr24zvuh3tx@alap3.anarazel.de>
References: <7d470953-07cb-f9dc-f7b3-d33697644b54@dalibo.com>
	<CAOBaU_Zh5K_kjCAX+OnwRMQ68SHSVSR5haF9R0Ud8hXk31Wk+Q@mail.gmail.com>
	<20210826130945.GB22637@momjian.us>
	<2CD2F784-E80C-4B0D-A038-A0D44DD4EDC4@yesql.se>
	<CAOBaU_bhhOJwY_49aLbnd873aR7HR0j-A2b_Zgk4AHJSifuSLA@mail.gmail.com>
	<30D4153D-8F40-4BB8-838B-142D2C4EB4F0@yesql.se>
	<20210826143448.GD22637@momjian.us>
	<YSgkMLB+x0Hiy44B@paquier.xyz>
	<CAOBaU_ZJ1_MAV-2Lv4wu6+PPVbo=O_sC8r9ck_dB_QbGXWs+Zg@mail.gmail.com>
	<20210827192842.7wef2zr24zvuh3tx@alap3.anarazel.de>

On Fri, Aug 27, 2021 at 12:28:42PM -0700, Andres Freund wrote:
> Isn't that just going to end up with extension code erroring out and/or
> blocking waiting for a bgworker to start?

Well, that's the point to block things during an upgrade.  Do you have
a list of requirements you'd like to see satisfied here?  POWA would
be fine with blocking the execution of bgworkers AFAIK (Julien feel
free to correct me here if necessary).  It could be possible that
preventing extension code to execute this way could prevent hazards as
well.  The idea from upthread to prevent any writes and/or WAL
activity is not really different as extensions may still generate an
error because of pg_upgrade's safety measures we'd put in, no?
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (39+ messages)  latest in thread

Message-ID: <YSmUGhShJBBIcyZb@paquier.xyz>
Permalink:  ../YSmUGhShJBBIcyZb@paquier.xyz/
Also on:    postgresql.org/message-id/YSmUGhShJBBIcyZb@paquier.xyz

 · 

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-hackers@postgresql.org
  Cc: michael@paquier.xyz, andres@anarazel.de, rjuju123@gmail.com, bruce@momjian.us, daniel@yesql.se, denis.laxalde@dalibo.com, jgdr@dalibo.com
  Subject: Re: [PATCH] Disable bgworkers during servers start in pg_upgrade
  In-Reply-To: <YSmUGhShJBBIcyZb@paquier.xyz>
  References: <7d470953-07cb-f9dc-f7b3-d33697644b54@dalibo.com> <CAOBaU_Zh5K_kjCAX+OnwRMQ68SHSVSR5haF9R0Ud8hXk31Wk+Q@mail.gmail.com> <20210826130945.GB22637@momjian.us> <2CD2F784-E80C-4B0D-A038-A0D44DD4EDC4@yesql.se> <CAOBaU_bhhOJwY_49aLbnd873aR7HR0j-A2b_Zgk4AHJSifuSLA@mail.gmail.com> <30D4153D-8F40-4BB8-838B-142D2C4EB4F0@yesql.se> <20210826143448.GD22637@momjian.us> <YSgkMLB+x0Hiy44B@paquier.xyz> <CAOBaU_ZJ1_MAV-2Lv4wu6+PPVbo=O_sC8r9ck_dB_QbGXWs+Zg@mail.gmail.com> <20210827192842.7wef2zr24zvuh3tx@alap3.anarazel.de> <YSmUGhShJBBIcyZb@paquier.xyz>

* 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