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 1wjk4s-000Gh8-2U for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jul 2026 20:50:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wjk4q-004omc-2C for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Jul 2026 20:50:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wjk4q-004omT-0g for pgsql-hackers@lists.postgresql.org; Tue, 14 Jul 2026 20:50:05 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wjk4o-00000000Cwb-16kh for pgsql-hackers@postgresql.org; Tue, 14 Jul 2026 20:50:04 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-38175907a56so260a91.0 for ; Tue, 14 Jul 2026 13:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20251104.gappssmtp.com; s=20251104; t=1784062202; x=1784667002; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=jUBdt7hxO+eQOptHlEzFbjsJxbN474578VLQyrB13nM=; b=0bRl0HzCkYQ3hvQ64V1EkqSHVya1k+CG5YmZCBFimlVq7Yq4xO6AvsMP4oiW/JHejk QAJ51FhdHsPX50NpDWkjS+Dj5KZmt0eap27pgz+PAPGSOg3j91Mt7/KNP/7fyRz4uUGu AahOHTYEGKy6TjVXi2PFrgVfAl5PdR3o1BtFtaC83Pz41o2Vyb3xK9R5LAIMI8npRL/p VUAe3vgXNTdOKFWvafs26aOmyBpnNivl9GYgu0Blr22JYHcFJb+/b4DYZjcLnWJHCVC/ fz4FvdvgSDHn28YLMCtQdD10a6iEHrmnquS1ffTfzBLacPAtwaV09/ywxXfmEwtcp1Cm 7VJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784062202; x=1784667002; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jUBdt7hxO+eQOptHlEzFbjsJxbN474578VLQyrB13nM=; b=a1UREByQ7aUGss2N4yKyJ/yA2CF7U75nmuIbtK9hIdtT5ivXTZGTORjt1IF/uwq8ZU YtlOgDRyeBnHKOU1VUwoLoMha1pZB3hbccxDGcIJrLw/69hZkqtNx9XNCh/0kb3co0YA yttIdrhVCqMbOCPNKBMXaT7Q8pwdavi767GThMR7GUxa2GuqX11Eqb2pwXI8ipxF+K9V fovDkpibjaSepIFgSMYEd1WSOV55Pi0Bn+WAjiojCEnD8Uq2X0C8UAS8a4J42Sp34uGf zgUVovas/4k5SskkjTxS0Ky5wb2HbqvtGLcEVSEM1f+aiFkblzTK4sA79NWAfUVrvdPn AVDw== X-Forwarded-Encrypted: i=1; AHgh+RpEXG6yVCskOoPdNbLnyiIyVd2JP4Nq0w/W/NOk4HIJ5VOB5x4tTTkPkXMEZ/cObA7YXKw3ecVKKcn/z8QZ@postgresql.org X-Gm-Message-State: AOJu0YxEeU9iCpZob9e9JnHvpEYCqms1lbYvWl/+nK9pu/0U/c5CS99S yRGNDaLtIkSUVBSCP/AAKxiL7ABjQHnbhGu1SmK8fxLWD+rvJhAmx8obmugaWbA8HQ== X-Gm-Gg: AfdE7clAVOjrFlsL95sdONQUPzLImHGfLNyzKsUdT/asanNiXZkcmWRwm/WNlAh66h+ NL9gjKpMsGvOSgL5CiV1KMpUTb3Fbp4sC+DjqYbSwywnhZ6JkCP+dd1RFe6X9OOlx5f6rgoYFkF JqlApPU9qejCxbrRlu2avEZduOD82YiOK+4ZwjAJ7/BB6Sfgr9YDFRfzQdQKx/IyihgeN/RF8bG TwUnA4sNPM3qMbM2AUusYFZlMngE1iRhu+L1qndRVJMu6JopKqkbtTa4jP0L0dLgqvzuITFOe/v /Swc7SrIbJEB23y3TDtA444iQymlA52mq83NS9VzugbqKeA6p8NhjryMNnPtY6Qe/hylJcMdtpQ vJ2tinEpiihaoqpBfXWzQn1L8Qc5vHb6igKeVqJf6j6K8tTJQdIrXBqsG9HBtTAqMPChzmm+fRg UPnVYwvCABB31I X-Received: by 2002:a17:90b:2fc6:b0:387:d9cc:7dc3 with SMTP id 98e67ed59e1d1-38d16190945mr18752456a91.21.1784062201788; Tue, 14 Jul 2026 13:50:01 -0700 (PDT) Received: from [10.10.242.174] ([12.63.242.123]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-313b4cbafa1sm81503190eec.6.2026.07.14.13.50.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2026 13:50:01 -0700 (PDT) Message-ID: <48531fdd144b17fa10b02adae33705de3ada8ea3.camel@j-davis.com> Subject: Re: REASSIGN OWNED vs. relisshared dep on !relisshared From: Jeff Davis To: Dilip Kumar , Amit Kapila Cc: Noah Misch , akapila@postgresql.org, nisha.moond412@gmail.com, pgsql-hackers@postgresql.org Date: Tue, 14 Jul 2026 13:50:00 -0700 In-Reply-To: References: <20260710192533.4f.noahmisch@microsoft.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1.1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2026-07-13 at 17:04 +0530, Dilip Kumar wrote: > PFA a patch for skipping subscriptions belonging to different > databases. I suggest we add a few checks (or asserts) that subdbid=3D=3DMyDatabaseId when reading pg_subscription from anywhere other than the launcher. Also, the REASSIGN OWNED path goes through AlterSubscriptionOwner_oid(), whereas both the REASSIGN OWNED and ALTER SUBSCRIPTION ... OWNER TO paths go through AlterSubscriptionOwner_internal(). It would be more clear to add the skipping logic in the former and an assert in the latter. Other than that, LGTM. We can also reconsider how we handle dependencies to address Noah's concern, but this patch is good regardless. Regards, Jeff Davis