Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wppaZ-001s2R-1S for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jul 2026 15:55:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wppaY-00GmD8-1A for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jul 2026 15:55:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wppaX-00GmCz-2e for pgsql-hackers@lists.postgresql.org; Fri, 31 Jul 2026 15:55:58 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wppaV-00000001JPx-0i2C for pgsql-hackers@postgresql.org; Fri, 31 Jul 2026 15:55:57 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-ca7c1176317so988641a12.1 for ; Fri, 31 Jul 2026 08:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1785513353; x=1786118153; darn=postgresql.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=C7+O7KV4497bzUIX2dFCTI0u4DjNRYfx6w8CFlH4wiE=; b=bnXHlrmwkQYogaR9BhpMZbBQ4YK/6wK4Mv5Wj0YhRnDqshnnE/rui+QPrOnz1fYe1F mQ9rX+ir8GqC7c+8J9Ha75NNH9PR6Grz2bgbVLzKRP9rn70WU3kPRSC/0Mf05/K9iV5y 1Rv4CgQ9EOLClF3nrvvF3sqafZRVtQ5uxYaz0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785513353; x=1786118153; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=C7+O7KV4497bzUIX2dFCTI0u4DjNRYfx6w8CFlH4wiE=; b=aaoS2f2X6F+rXRgesgX51YEn4lxA4nWumUK9CjjPFYCIR3B62Iq2wEUWqXkKft/0xB N4+qtlOsFs5XRTBh3tqVGebtF5pCccDX+tGKtopW1ExSP4geT9qUNCoZyo6HOwo7uZz9 yNOmmzeVRi1FaHsbpcapivZr8qBl4EctB1eTsDQFeOX8yeenggK9mvQHaQdo/IZVslwQ HidyOLFebFLOY23eASCWDTkHILb4Dmd+D9Gt05Xf5UEQaNrc8mIOpOBKbklBs9Gi/e5d /RM+5CA+6Rvvuc65Nl9Ngx/xpJrUgrBERsnBGm8DSBcAbICvrF9ZrHgdrTpTAnMlbowJ L6Zg== X-Forwarded-Encrypted: i=1; AHgh+Ro5oDZMDOvvcp5m14iQOTQPnaHw5t/bv9MeiEuIY14WtFJuIQfl/6+LHA8xTqw99SVchl6rnXoT7wFDJ2Zz@postgresql.org X-Gm-Message-State: AOJu0Yzcx5qv11x/pLr7VV1thDU6QwGB3PGNCc7Qd88RJkaLJPY/E7cl 3KXUsyU32p9L2J07Om45loUpnU6czcTCsqkueJDPe0G/YmH9wzmP5JTXmzQyi9qs2w== X-Gm-Gg: AR+sD13FlxG43yHrYjZaQ8ikCS7YQDERf15p9PjvjmUAh1swucN3B0Pl9dF2ENy+o4t 8voH7PvbzVS26bDR+tVh0TMd9JsThwaWTE3UKL20g8RUi1a7hBSNRAbErasWsEfJJOVbn5eaEWL 4A1I3vvyualzfWGoRpMY7bBjMQ+kodGHvNaGxag9rRTd1g6iNNMU3QLF0PBqVdJ4YBLs2ELhA/j ru+urMA3CNFUFfSwD0JxYLL/lcRbpq/0dxJneilxSh96U0jTX4aKSgt+Gjne34+FOImb5RvH9ky hXKFOOTMUI0PYVl8Y6ufU2KirRgm2i1Eew/p0XwzvaFAnH0UIcOP9E0yPnrK43U4EYKDJW2w5G5 HbPUOdetj8G1NHGurXqYc5Bdu7TFiFwzACfTCwBLNikoPTUVLP52tan+IyeIMQqz5sD2wk7D0/I 5D2jlkDXd985Nlxnt7QmyEnEFpokMs+YApnZUabzUJ4tp0DiYVjBe2gjw6Q6YAE2okcLd73odoG oj+MgZEWjB12qb4zVLS X-Received: by 2002:a05:6a21:687:b0:3c3:ac5d:b6de with SMTP id adf61e73a8af0-3c92a60260fmr335940637.22.1785513352765; Fri, 31 Jul 2026 08:55:52 -0700 (PDT) Received: from microsoft.com (c-73-15-160-255.hsd1.ca.comcast.net. [73.15.160.255]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13fab4fdb80sm4075278c88.15.2026.07.31.08.55.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2026 08:55:52 -0700 (PDT) Date: Fri, 31 Jul 2026 08:55:50 -0700 From: Noah Misch To: Amit Kapila Cc: vignesh C , pgsql-hackers@postgresql.org Subject: Re: sequencesync worker race with REFRESH SEQUENCES Message-ID: <20260731155550.fc.noahmisch@microsoft.com> References: <20260710045217.f0.noahmisch@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.3.0 (2026-01-25) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 31, 2026 at 02:55:33PM +0530, Amit Kapila wrote: > On Fri, Jul 31, 2026 at 11:06 AM vignesh C wrote: > > Here's the summary of the findings: > > Finding 1: Refresh paths race the in-flight sequencesync worker - > > committed (45cf7b1e5bf923ca48dfd9aa5001bdd0630d11c3) > > Finding 2: `default_transaction_read_only=on` permanently blocks > > sequence sync - committed (4cd02d552263ed8d4b148aaefd24cd9dd8af57ed) > > Finding 3: `run_as_owner=false`: one un-SET-ROLE-able sequence owner > > stalls all sequence sync, unattributed - Rejected at [1] > > Finding 4: Gathering scan holds a lock on every INIT relation in one > > unbounded transaction - committed > > (c12c101b0846b1e6488f2dc986a852fbc6bf2e3b) > > Finding 5: Sequencesync worker starved by tablesync workers; REFRESH > > SEQUENCES silently deferred - Rejected at [1] > > Finding 6: No publisher-version guard: pre-PG19 publisher causes a > > perpetual, cryptic error loop - committed > > (57e7c52c0fe43fff36d0f4440eea13cf5668b160) > > Finding 7: `has_sequence_privilege()` NULL on concurrent publisher > > DROP: Assert crash / wrong diagnosis - committed > > (55f518684895bfe43e667acf59284b49707ee685) > > Finding 8: Permission-denied sequences double-reported as "missing on > > publisher" - committed (13b7a8a0ef56d9decae284b4983894175c17d217) > > Finding 9: ALTER SUBSCRIPTION ... DISABLE never stops a running > > sequencesync worker - committed > > (b8d9cf512c1259f97f9896593cc1c8352c1118ac) > > Finding 10: REFRESH SEQUENCES vs concurrent subscriber DROP SEQUENCE: > > internal XX000 errors - Rejected at [1] > > Finding 11: Sequence-removal loop runs after irreversible tablesync > > slot drops - committed (b8d9cf512c1259f97f9896593cc1c8352c1118ac) > > Finding 12: Batch query mixes MVCC definition columns with live > > `last_value`: validation bypass - this is a base code issue, which is. > > being tracked at [2] > > Finding 13: REFRESH SEQUENCES warning misattributes a `copy_data` > > request the command cannot express - committed > > (00b3e50054dad648e74d19cc199555381ab366d2) > > Finding 14: psql tab-completion regression after `REFRESH PUBLICATION` > > - committed (b8d9cf512c1259f97f9896593cc1c8352c1118ac) > > Finding 15: pg_stat_subscription row for the sequencesync worker: > > fabricated times, undocumented NULLs - committed > > (b8d9cf512c1259f97f9896593cc1c8352c1118ac) > > Finding 16: catalogs.sgml `srsublsn` description wrong for sequence > > rows - committed (b8d9cf512c1259f97f9896593cc1c8352c1118ac) > > Finding 17: Docs omit the PG19+ publisher requirement for sequence > > sync; REFRESH SEQUENCES silently no-ops - committed > > (57e7c52c0fe43fff36d0f4440eea13cf5668b160) > > Finding 18: Restrictions bullet still claims only tables can be > > replicated - Rejected at [1] > > > > With all agreed issues now committed, the remaining four findings > > rejected by consensus, and Finding 12 being tracked separately as a > > pre-existing base code issue, I believe all items have been addressed. > > I felt this thread can now be marked as closed. > > I agree with your analysis of the reported issues and will close the > corresponding open item [1] early next week unless someone thinks > otherwise. Noah, would you like to cross-verify? No need to involve me at that level of detail. Thanks. I'm glad some of the lesser findings also deserved changes.