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 1jWv9Q-0007wM-GY for pgsql-docs@arkaria.postgresql.org; Fri, 08 May 2020 05:02: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 1jWv9O-0005F2-O9 for pgsql-docs@arkaria.postgresql.org; Fri, 08 May 2020 05:02:18 +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 1jWv9O-0005Cq-Fg for pgsql-docs@lists.postgresql.org; Fri, 08 May 2020 05:02:18 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jWv9M-0006xY-B3 for pgsql-docs@lists.postgresql.org; Fri, 08 May 2020 05:02:17 +0000 Received: by mail-qk1-x743.google.com with SMTP id f13so27908qkh.2 for ; Thu, 07 May 2020 22:02:16 -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=w2300umc9QEnbhuDQ1+SvWOelbFxuIc1i6frDYv9rX4=; b=K1YOvyRwZZE3Vn934DLWLewap1BQ6M2JBTrMT7YXGlXetjzcAHZW+EXU0JwneJ2zcP NJ+iPVaxWbO8AkWcJ7yCe39clw6fcEYOpCLtE68emYMoIKdL27v5/detcBUYn4bzN/mp I5GcAcHXq3fIGnh/mX+3JLpRpxbe1jHj9EZeF9PWqr9N3tix0J0E/Ms6vfFohiQ2DK/0 kqaDV3MRgXrWlFbEdFkUcx8Kt58jui6PDQVYhkrGIB07+u2kZQejW2DYTjzK+PoRE+pf 0z6IJWX0E9tVv3wVi5iePzIvtFBiS5dSonFik2JYbhnPCA93vtZq2dteY9fWEOzdwXxk 4DLg== 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=w2300umc9QEnbhuDQ1+SvWOelbFxuIc1i6frDYv9rX4=; b=sm/SBKezQRSR30SpbAJopo5I6yhR2p/cddQqLfZORNDNHe9comhIkzwT+0wVZYCQNT dtny6jKmFvAdi4dsOz08Q8iZybHKE9UlAMR/xuoy8Gt/X7VbF9HPoze6vXNcy50YNfad LVlKFFdgLR+8OiYCR9gzVFiM4/AMMHftdTy0GNa3KaCgqo8S+XMU5OHlQ8msAWX80D/a wss78tz4kGh5q9BpZuv8HUdStO+nazjTLDLYPFvzMxikLL+WrGEuY8orAIHideC2HtYi wuyUKIH8hacE8XuV7+5vO3zmMVLcCS0wTKXo1rGB1S4mZ05S/hqFoC3SMZ9odnInYlnK J4ng== X-Gm-Message-State: AGi0PuYMud9uFXWBla2Sx4KdiaRj1ez3Ane8ByQ4dZdgEvAudUsofG05 +pfL7nGsIZR5IWyFR7QM2/cDsA== X-Google-Smtp-Source: APiQypJelnuWKsrKA4qAHbGs/rOp7gIpHMAEQ9W1frVzaXBM+28QIBnU8mVnUQsUFtlywMlNmFATTw== X-Received: by 2002:a37:d287:: with SMTP id f129mr931821qkj.52.1588914135424; Thu, 07 May 2020 22:02:15 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id g127sm396306qkb.6.2020.05.07.22.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 22:02:14 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id BF606301DCC; Fri, 8 May 2020 01:02:11 -0400 (-04) Date: Fri, 8 May 2020 01:02:11 -0400 From: Alvaro Herrera To: Tom Lane Cc: Stephen Frost , chris+postgresql@qwirx.com, pgsql-docs@lists.postgresql.org, pgsql-hackers@lists.postgresql.org, Peter Eisentraut Subject: Re: Logical replication subscription owner Message-ID: <20200508050211.GA6945@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17709.1588908623@sss.pgh.pa.us> 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-May-07, Tom Lane wrote: > FWIW, I would argue that LOGIN permits logging in on a regular SQL > connection, while REPLICATION should permit logging in on a > replication connection, and there's no reason for either to depend on > or require the other. I agree with this. > >> Also- what about per-database connections? Does having REPLICATION mean > >> you get to override the CONNECT privileges on a database, if you're > >> connecting for the purposes of doing logical replication? > > No, why would it? Should LOGIN privilege mean you can override > CONNECT? That's nonsense. You need the respective privilege > to connect with the protocol you want to connect with, and you > also need CONNECT on the DB you want to connect to. And this. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services