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 1mEHdY-0008RQ-Uf for pgsql-general@arkaria.postgresql.org; Thu, 12 Aug 2021 20:49:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mEHdX-00033w-Hc for pgsql-general@arkaria.postgresql.org; Thu, 12 Aug 2021 20:49:11 +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 1mEHdX-000336-6I for pgsql-general@lists.postgresql.org; Thu, 12 Aug 2021 20:49:11 +0000 Received: from mail-qv1-xf2d.google.com ([2607:f8b0:4864:20::f2d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mEHdQ-0003VK-5K for pgsql-general@lists.postgresql.org; Thu, 12 Aug 2021 20:49:09 +0000 Received: by mail-qv1-xf2d.google.com with SMTP id kl2so3945977qvb.11 for ; Thu, 12 Aug 2021 13:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=L2nBtEea5FD6xW0/2A5vih4jHMtjYZgbzU31WbJdcSY=; b=EVpqxAC6XK1xC6zYC3cMydqBvbTpX6ot4yxncEoWXigB9TEvm/+Zkm6WhD/bsQIGls ZxXqB/Vot6+KEUAJ53sZENq1sFenpKq99kwvW95aEQno8iOWoxodF9ySM0a5QJaDccbC ftqjivJvkFwUebo8Rxe5ubU8kDmkNz+/gzS89q6Ei8QvIe5lFyP6nCwWIbgOcxM+cBzJ Tub/yZYFYycNHnjjapKzhdo9rfU+Gm5+LvSdz6Qk1iF3wYyr9SN9uhlRyjzmh50KVwFH 8p9JIEGsQ1FsTln9vRiEjjXYOOGLseA05oJv1B9vX9m+aEINx/AoTe0FSovVxIr5lgE/ vJyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=L2nBtEea5FD6xW0/2A5vih4jHMtjYZgbzU31WbJdcSY=; b=Xrhl7Rub7+qXq+ikrWRc+/nDqwcbjKrmRA86/zhmzfuQVLTYWWBsBStZAvTXtFSpi1 lkUQH2GrvkZWq8oPh9W8XUqmpFPnGTft9zFwmZZdHo42gAvDxOSslFwm6reElD+IIy6o X2D2lI+As7+Ddez2ETufoOlEBfjZ7UWL3DVQr6PAHpkk35nlZo83IK0Eca87AZ2Ccot8 abnLBvU3KOMeTwPczOB/tYIQjj7tLllS9Z40knhh8120/M8C3wZy5OxsLyMyh/Q/jKlf X9fd/H2glu5pcBKWsebtRIynLDNFBLoT9VxFo+cey4+Espl+7sw/XJYnGQsPSvXvQvZc EaXw== X-Gm-Message-State: AOAM531y0XmJktjuPQ7Bg6P/YjD+73WajaCrxqx3vDU66neG+1+RMlMO 0JcCsJKTQnMjF9nmDDbL9XDXAMG5XTcxjQ== X-Google-Smtp-Source: ABdhPJx/Br5KR2bEHUpmO2tklVe5VI1rR1eiKruIPbsKycV7nVJiM5h/w/c38bAwGpM1oiGbYSNldA== X-Received: by 2002:ad4:4973:: with SMTP id p19mr5909028qvy.30.1628801341400; Thu, 12 Aug 2021 13:49:01 -0700 (PDT) Received: from [192.168.2.100] (pool-100-8-54-81.nwrknj.fios.verizon.net. [100.8.54.81]) by smtp.gmail.com with ESMTPSA id r20sm1627057qta.34.2021.08.12.13.49.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Aug 2021 13:49:01 -0700 (PDT) Subject: Re: log_statement GUC parameter To: Bruce Momjian Cc: pgsql-general References: <510207d8-8895-c3cb-e0a1-55135e4ce4f7@gmail.com> <20210812202308.GA4822@momjian.us> From: Mladen Gogala Message-ID: Date: Thu, 12 Aug 2021 16:49:00 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210812202308.GA4822@momjian.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Bruce Yes, I can. I have already done so and it works. I wrote a procedure because of my Oracle background, but it doesn't really matter. This was just a suggestion for the session settable parameters. Regards On 8/12/21 4:23 PM, Bruce Momjian wrote: > I think you can write a SECURITY DEFINER function that calls SET, call > that function at login. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com