pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedLost permission
2+ messages / 2 participants
[nested] [flat]
* Lost permission
@ 2018-09-27 22:00 Jan Kowalski <jk@poczta.srv.pl>
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kowalski @ 2018-09-27 22:00 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hello!
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.
I've carefully checked that there are no GRANT/REVOKE statements related
to this table. Application connects to PostreSQL from dedicated account
using peer authentication. Restart of application doesn't change any
permissions.
The problem is related only to this one table (but this table has
biggest number of inserts).
How to diagnose this problem ?
debian stretch, PostgreSQL 9.6.10, all packages updated.
best regards
J.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Lost permission
@ 2018-09-27 22:40 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jan Kowalski <jk@poczta.srv.pl>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2018-09-27 22:40 UTC (permalink / raw)
To: Jan Kowalski <jk@poczta.srv.pl>; +Cc: pgsql-general@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-09-27 22:40 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 22:00 Lost permission Jan Kowalski <jk@poczta.srv.pl>
2018-09-27 22:40 ` Tom Lane <tgl@sss.pgh.pa.us>
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