pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steve Baldwin <steve.baldwin@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Transaction prevention
Date: Wed, 29 Jul 2020 20:23:34 -0400
Message-ID: <1344584.1596068614@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKE1AiYUreZcQdgg76DK2ESAxuowf4OkLhUJyfVXc2or4Y25Vg@mail.gmail.com>
References: <CAKE1AiYUreZcQdgg76DK2ESAxuowf4OkLhUJyfVXc2or4Y25Vg@mail.gmail.com>

Steve Baldwin <steve.baldwin@gmail.com> writes:
> If I have a user that is restricted to select access (only) on a single
> table, is there any way to prevent that user from starting a transaction?

No, but maybe setting statement_timeout and/or
idle_in_transaction_session_timeout for that user would be helpful
(cf ALTER USER ... SET ...).

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <1344584.1596068614@sss.pgh.pa.us>
Permalink:  ../1344584.1596068614@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1344584.1596068614@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, steve.baldwin@gmail.com
  Subject: Re: Transaction prevention
  In-Reply-To: <1344584.1596068614@sss.pgh.pa.us>
  References: <CAKE1AiYUreZcQdgg76DK2ESAxuowf4OkLhUJyfVXc2or4Y25Vg@mail.gmail.com> <1344584.1596068614@sss.pgh.pa.us>

* 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