Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn2sQ-0007NI-Sp for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 18:08:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mn2sP-00048y-Es for pgsql-hackers@arkaria.postgresql.org; Tue, 16 Nov 2021 18:08:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mn2sO-00048o-Vp for pgsql-hackers@lists.postgresql.org; Tue, 16 Nov 2021 18:08:13 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mn2sM-00023g-DO for pgsql-hackers@postgresql.org; Tue, 16 Nov 2021 18:08:11 +0000 Received: by mail-pl1-x636.google.com with SMTP id b11so18085605pld.12 for ; Tue, 16 Nov 2021 10:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=M0N3//AWL9Vak9/erZ56uZwE7zKluNRESqnouG6dqpM=; b=f3Fi1Evvts6xxyweWropGMKL1NNz7UKWinGyXHzC6HYxM4wVWG2hwWynkDQ2twjwQ8 W5tIq6J84rMxTlpns2ySe+aoqtXEtsmQ/80KNVAIbl/6g6dveBKD4nsI2K1yCjNsg58m LamIt4VublCFWct8WZbGnN5pSR2jHOWx7WTDtZZGH4+S3Iyi/mgAY72QkuXOv4EJoSrm PXLBT4gtxOAf1xZhBsQ7sM3i5NgXNPX4/Q/c6PXfixwNVB6h25D9nloHk1bdkr3YPcQe 1OyQZVrEUWkJKIhr/9IjqOy/iZjwnijK/q8y2V8f7RFvapG7HB3NSYyOQpJKOQpcy35i hGnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=M0N3//AWL9Vak9/erZ56uZwE7zKluNRESqnouG6dqpM=; b=gmHNP7V/o4Dmg5emUnl170z2u/JOioB8Opt9DSNOI4f4dnBp7srv0kw9fd0jC4wQWC /QfXj37d9dkR0uyYtWh010c5rNEjq2omczPYRmnhN/DtwfRny3VvR2M0SmCh7phPyWp2 o8kDZEErR5meGfjE0jIBS1xj0mozvYb8s0EpLUoUN86Grh9/aoxGHr5Ly8klkr4THU/p EXFKd+F5lvSiFN574X8AbC1J+lvSOq5KTYaPYAIe/FgjAkRaX8tzzJPZZOEG2/Nr7oQ1 V7JH070skOuqww0bi6H2cCBl6U7yPPw8X6KU2B1TAfNFJboi1HMc0znSrllZoa9BawRh M8GA== X-Gm-Message-State: AOAM532mCOHxfL2ArSseiyVsj0gX8ZxBE7V/SmzVPocKgJuSsTMzab6g OjavoQLLqMJzTmpDGHQ7Zkskiw== X-Google-Smtp-Source: ABdhPJxHjWqcYV1yUA0N5OWBu0ka3L5ZD7XiZIKp8MoVC1+iTXajQv0swQp1bGyBSCgFb7p1IARN7A== X-Received: by 2002:a17:90a:db89:: with SMTP id h9mr1075347pjv.71.1637086088997; Tue, 16 Nov 2021 10:08:08 -0800 (PST) Received: from jdavis.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id h25sm14282998pgm.33.2021.11.16.10.08.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Nov 2021 10:08:08 -0800 (PST) Message-ID: <3c9b220207b8895086887addd37d371ccd1b420b.camel@j-davis.com> Subject: Re: Non-superuser subscription owners From: Jeff Davis To: Mark Dilger , Andrew Dunstan Cc: PostgreSQL-development Date: Tue, 16 Nov 2021 10:08:06 -0800 In-Reply-To: References: <9DFC88D3-1300-4DE8-ACBC-4CEF84399A53@enterprisedb.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2021-11-01 at 10:58 -0700, Mark Dilger wrote: > It is unclear that I can make ALTER SUBSCRIPTION..OWNER TO > synchronous without redesigning the way workers respond to > pg_subscription catalog updates generally. That may be a good > project to eventually tackle, but I don't see that it is more > important to close the race condition in an OWNER TO than for a > DISABLE. > > Thoughts? What if we just say that OWNER TO must be done by a superuser, changing from one superuser to another, just like today? That would preserve backwards compatibility, but people with non-superuser subscriptions would need to drop/recreate them. When we eventually do tackle the problem, we can lift the restriction. Regards, Jeff Davis