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 1oZfZA-000665-Ji for pgsql-general@arkaria.postgresql.org; Sat, 17 Sep 2022 21:41:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZfZ9-00060X-Fz for pgsql-general@arkaria.postgresql.org; Sat, 17 Sep 2022 21:41:35 +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 1oZfZ9-00060N-5Q for pgsql-general@lists.postgresql.org; Sat, 17 Sep 2022 21:41:35 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZfZ4-0002tH-N2 for pgsql-general@postgresql.org; Sat, 17 Sep 2022 21:41:34 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6D9345C0262; Sat, 17 Sep 2022 17:41:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 17 Sep 2022 17:41:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc: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=fm1; t=1663450887; x= 1663537287; bh=UJirCUbcayWjbGgxoXkbsW7VaHi2HoBLI7/3ScFGFu8=; b=H LGwlM4jnYfJe0jUumhg0Jv9V2f/mDIbhgLc9T9KLBJnYWpp3oMLzAfMPYYHRy+WL hbIfYD1T7ItgAVax2twxToy4SUZ3+wEbfOs6JRAEF3fxuYvURB/3bCz9788x5oSv iq6fyOk916SHnOKXesxKvmrwNMtlk3Rzn07gdSZfWakcOnFleB6rbk7G8G/AYzRh unpKzLdaq68y+Zb0R86dTfnnsQ3yTS2CWPfYDibxz4XXCrD3f0H8KrvEdW4WyqF9 xHPztARwsk+RvCSjUpKBy6XLfKF8Yp45J1A4qURYj5DhB4IN2AlmnqGBmqQA8sqG iUK1LzUAauWtwQKnwWkSA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; t=1663450887; x= 1663537287; bh=UJirCUbcayWjbGgxoXkbsW7VaHi2HoBLI7/3ScFGFu8=; b=Q D+gc2H/NB8WaJg8xDqPA/aEWuos9xtfi1YJ+DwS4DXSxuDGNIPPQVszRzjXPD3eT ajwSbTmdmkAd2bbwAB8Jo92hvWwGDVoenah+j7oH7xbzT3RYdaH6t9goc4Ye1/zF 7NJ7LgOondXNCWjx2njUU3DkNMT+KH9GoPvZPSaYHa/yrJXQaQx/aQzdTMAkcYEU sqloqkZ4GxOIdIJOMuYiw+ShAEj1J1ILkZL1Q//T2CViWKmnqNl0WGLSgnKsf/iQ OeZCl6SRFlLR2JVF9IS1jDf71OC2bopWtrQSvU7hWGHgifQa4Ts8r8VZUUUUcnSc wcZb+n4tgHJqhPSNmqXQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvfedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhephedugfethfettdehieevteeukedtjedvhfevkefg udefgeevteduvdeuvdeggeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 17 Sep 2022 17:41:26 -0400 (EDT) Message-ID: <227d9194-c48d-d244-e7c5-beb433dec212@aklaver.com> Date: Sat, 17 Sep 2022 14:41:26 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: get user info on log Content-Language: en-US To: Marcos Pegoraro Cc: Postgres General References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/16/22 06:00, Marcos Pegoraro wrote: > Em qui., 15 de set. de 2022 às 12:59, Adrian Klaver > > escreveu: > > test(5432)=# set role maura; > ERROR:  role "maura" does not exist > test(5432)=# SET SESSION AUTHORIZATION 'maura'; > ERROR:  role "maura" does not exist > > No, I was asking about an error occurring later, not on set session > authorization command. > > set role maura; > --user Maura exists and set was done correctly > --now I´m working as Maura > select 1/0; -- I would like to see this exception on log being logged as > maura I don't know of a way to get this. > > thanks > Marcos > -- Adrian Klaver adrian.klaver@aklaver.com