pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jan Kowalski <jk@poczta.srv.pl>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Lost permission
Date: Thu, 27 Sep 2018 18:40:47 -0400
Message-ID: <20795.1538088047@sss.pgh.pa.us> (raw)
In-Reply-To: <1538085606.6107.32.camel@sem-jarek-01.prv>
References: <1538085606.6107.32.camel@sem-jarek-01.prv>

Jan Kowalski <jk@poczta.srv.pl> writes:
> I've strange problem with Pyramid application working with postgresql
> over psycopg2.
> After some period of operation, my application insert new row to one of
> tables with the message:
> ERROR:  permission denied for relation ...
> After restart of application, it starts to work properly again.

Couple of possible ideas:

* something in your app sometimes issues SET ROLE or SET SESSION
AUTHORIZATION.

* you're using a connection pooler and it sometimes reconnects you
to a connection with the wrong user ID.

Neither of these seem terribly likely, but whatever it is has to
be weird ...

			regards, tom lane




view thread (2+ messages)

Message-ID: <20795.1538088047@sss.pgh.pa.us>
Permalink:  ../20795.1538088047@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20795.1538088047@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, jk@poczta.srv.pl
  Subject: Re: Lost permission
  In-Reply-To: <20795.1538088047@sss.pgh.pa.us>
  References: <1538085606.6107.32.camel@sem-jarek-01.prv> <20795.1538088047@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