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 1ovio4-0001F9-TM for pgsql-general@arkaria.postgresql.org; Thu, 17 Nov 2022 17:36:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovio3-0007cZ-HH for pgsql-general@arkaria.postgresql.org; Thu, 17 Nov 2022 17:36:07 +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 1ovio2-0007cP-2a for pgsql-general@lists.postgresql.org; Thu, 17 Nov 2022 17:36:07 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovinw-0000KP-D9 for pgsql-general@lists.postgresql.org; Thu, 17 Nov 2022 17:36:05 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id E848A3201B7D; Thu, 17 Nov 2022 12:35:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 17 Nov 2022 12:35:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1668706556; x= 1668792956; bh=Ga/Q6bB89fW0pBvjKOLEMDHDl5Pe3CkzpgkQV02ngaQ=; b=X Hidi91tyjmdkSeFEgplIF16WCcQVEhJH77dG8pBQo+ayypTup/3CqVCEDHyBNJsR OqEYVu+0QqEeKJOS/f2lnyx+QhfMG09ONFapJTN+Pd1yTz13JK3+vX6VKEnNM3HU iOIGAEZyYxXm/9TL7iEPApD/ka3hyoxFX9nOaQDbvUEnLiDpBaxMyOFQfs77FXmb jQKULUdtjqm1MwUHsUrfOEKoax0D2y1LhCrjo1s1Fq7+vQqechcmV8JdVN9Dbm0h sTRfqBmhQRMvkLxKgxx2nRZmuSIh54tzStpVQe/v6GVRhJBMo/VeIFlH6RcPzjUK A02c1hrDXJ8MXT/fwboHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1668706556; x=1668792956; bh=G a/Q6bB89fW0pBvjKOLEMDHDl5Pe3CkzpgkQV02ngaQ=; b=Q5ekvsCYbttRVf/jH u5vOSwRw+MMTWg3iVrKiQQN/Hg5IOrAp1FZyICMUkmFHoyaRWBgeWZoYIgQk1yeP I9GblzH7EeKftfItJlI6EDF+ri2f3BphV61ZNUK/Kw78DP6p7b93Tq88SH2XLzxL DPF/12CxA2RrfI74ZpZUIGV6bx2ByoYIDW5oZLl2cmnmGapEIpNqFed8o5bI/iN/ qc7c9SpwSPN+jyEANsGTznyAMzZlpTt/9RvAQyEUH+KSicZvt4aYw7tVACrCDIXe B+dN3nKVorb0LiKK0sGSJ6badkwlNINZUv0PLLhKPxfypKmfSLTITLVs6TkXDcvt lwLow== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeekgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevvdekiefhudfhhfdtkeelgeffudeigfetjeegfffg hfetfeelledugfelleegveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Nov 2022 12:35:56 -0500 (EST) Message-ID: <359ae842-c217-1055-e24b-173918c1e5f3@aklaver.com> Date: Thu, 17 Nov 2022 09:35:55 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: session_user different from current_user after normal login To: Murillo corvino rocha , "pgsql-general@lists.postgresql.org" References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/17/22 07:11, Murillo corvino rocha wrote: > Hi, > > We have a situation where two users are members of a group, like below: > > Following the solution in the discussion above, we solved our problem > using the command: > > SET SESSION AUTHORIZATION ; > > For our example: > > SET SESSION AUTHORIZATION user1; > > After that, it was possible to change the user password. > > My question is: is that a normal behavior? should I, after a normal > loggin, be logged as > > group_read_only as my current_user? Something or someone is doing SET ROLE group_read_only. > > Thanks in advance. > > Murillo. > -- Adrian Klaver adrian.klaver@aklaver.com