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 1jROKu-0005Ot-OF for pgsql-docs@arkaria.postgresql.org; Wed, 22 Apr 2020 22:59:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jROKt-0005yp-Ls for pgsql-docs@arkaria.postgresql.org; Wed, 22 Apr 2020 22:59:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jROKt-0005yh-7S for pgsql-docs@lists.postgresql.org; Wed, 22 Apr 2020 22:59:19 +0000 Received: from mail-qv1-xf43.google.com ([2607:f8b0:4864:20::f43]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jROKq-0005Bw-FN for pgsql-docs@lists.postgresql.org; Wed, 22 Apr 2020 22:59:18 +0000 Received: by mail-qv1-xf43.google.com with SMTP id t8so1902376qvw.5 for ; Wed, 22 Apr 2020 15:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=uJwc0FeYA+6q675+kAGgSMFhB7xCjfr0SnKzXTbR3Ww=; b=VbePUgD4SJBrKs2gEnRu4cR/feic8YFcSe/+tYDKB1MRachTBLom5bYqGS35DqID1e 5TSnr5FgCIjjn53KT/Vt9hLf4gy8LqgvlrKfymDBtz8mdmNdFmSy0U/zGttv5KHZAght +1ZuoiGMivieNJsAHt79F2pdCc/spoILmSnKLHaDZPtRc3R/Z9hnThLvUZkhoKVUiGkE Iz4BjA/YlSAjH0yAmflm866MxEZPpRGpfJL1+fp2IQijE2YY4OhQgDcSnOE/dvbnr1kV +uvXYk+6effURSUXIU0SaHgmp2w1q4M/E45pKEodhGPvE7D3G62htMNnhYL3jbUaoC0N tBBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=uJwc0FeYA+6q675+kAGgSMFhB7xCjfr0SnKzXTbR3Ww=; b=kBfXzPqD+N6a6yc+gVWk2Mnk4gFM1RRYGiFcfBqifXwyhGLFZ2SJaYP4a29kFQXaV5 naKVqdbbWB3vCOGBtgk34fBFIxfY6YzYsJ+JXxX0s9fk660bteDQ3cbG1ZsVkhyWhFPz 1rYUSgdaR+tGANQFupmvnkX4E/1NgpBHwAnx4kL4Ez6NHwdLMPP2VC4PbCwE+lfFcO+k d0LPw1Lu8zHXoUFVc3OLT2l7OW03NHMnTvIAPejPGn0M/cL19CbcMGbaSJCBH0c+/erO 22LAryORnEc8wfdsKwBtRV1jzAwUT+yVUAY/i548dNw+hqm2hru1rioNs66BZ4uJsM14 lL7A== X-Gm-Message-State: AGi0PuY1UsQ3dAiFlVK59sKVe62N02WIceSj3TG24WV3CHEcYECoqVIh 45QcnOUCWPRaTg4aKyvgZzgLVSAKkAMAK2RN9QMNatElBXqvGs005JOdvqOT98L2d63TyXsvjY2 0exd94kmXJtvJ5wNJHdEGxDIYxmTb0EFbFYikVB8kS2UJmFXSyd7ep4lOhKEwDgtb6JzaZb5ZU4 9vkMzAoIAZ2VJ+kaM= X-Google-Smtp-Source: APiQypIbJK7eUConD8mljEVXV4awgNY0w63YEsTrtleTuFHovZYr1MEaAVHPvfYMW08y4O7JpNb94A== X-Received: by 2002:a0c:da0e:: with SMTP id x14mr1401140qvj.47.1587596354552; Wed, 22 Apr 2020 15:59:14 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id d4sm486349qtw.25.2020.04.22.15.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2020 15:59:13 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id EAEDD30142C; Wed, 22 Apr 2020 18:59:11 -0400 (-04) Date: Wed, 22 Apr 2020 18:59:11 -0400 From: Alvaro Herrera To: Stephen Frost Cc: chris+postgresql@qwirx.com, pgsql-docs@lists.postgresql.org Subject: Re: Logical replication subscription owner Message-ID: <20200422225911.GA10161@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200422174611.GX13712@tamriel.snowman.net> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Apr-22, Stephen Frost wrote: > * Alvaro Herrera (alvherre@2ndquadrant.com) wrote: > > I wonder if a better answer is to allow the connection when the > > REPLICATION priv is granted, ignoring the LOGIN prov. > > Erm, no, I wouldn't have thought that'd make sense- maybe someone > specifically wants to stop allowing that role to login and they remove > LOGIN? That REPLICATION would override that would surely be surprising > and counter-intuitive.. Well, I guess if somebody wants to stop replication, they can remove the REPLICATION priv. I had it in my mind that LOGIN was for regular (SQL-based) login, and REPLICATION was for replication login, and that they were orthogonal. You're saying that there's no way a role can have REPLICATION privs but no LOGIN. Is that sensible? -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services