pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: log_statement GUC parameter
Date: Thu, 12 Aug 2021 16:51:33 -0400
Message-ID: <4534f313-b374-2dc4-d0a4-5d301981a089@gmail.com> (raw)
In-Reply-To: <4105997.1628800636@sss.pgh.pa.us>
References: <510207d8-8895-c3cb-e0a1-55135e4ce4f7@gmail.com>
	<e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.com>
	<4105997.1628800636@sss.pgh.pa.us>

Thank you Tom! It turns out that the Oracle way of doing things 
(SECURITY DEFINER) was the wrong way here. Thanks a bunch.

On 8/12/21 4:37 PM, Tom Lane wrote:
> ctually, for that specific requirement, there's an easier way:
>
> 	ALTER USER target_user SET log_statement = 'all';
>
> While the target_user can't do that for himself, a superuser
> can.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com






view thread (9+ messages)

Message-ID: <4534f313-b374-2dc4-d0a4-5d301981a089@gmail.com>
Permalink:  ../4534f313-b374-2dc4-d0a4-5d301981a089@gmail.com/
Also on:    postgresql.org/message-id/4534f313-b374-2dc4-d0a4-5d301981a089@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: gogala.mladen@gmail.com, tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com
  Subject: Re: log_statement GUC parameter
  In-Reply-To: <4534f313-b374-2dc4-d0a4-5d301981a089@gmail.com>
  References: <510207d8-8895-c3cb-e0a1-55135e4ce4f7@gmail.com> <e9ab9151-6f4d-e7bf-d5d5-0ec3d06695cf@aklaver.com> <4105997.1628800636@sss.pgh.pa.us> <4534f313-b374-2dc4-d0a4-5d301981a089@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox