Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5eKp-0000ey-HN for pgsql-general@arkaria.postgresql.org; Thu, 27 Sep 2018 22:00:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5eKm-0001M6-Jh for pgsql-general@arkaria.postgresql.org; Thu, 27 Sep 2018 22:00:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5eKm-0001Lw-Bs for pgsql-general@lists.postgresql.org; Thu, 27 Sep 2018 22:00:32 +0000 Received: from mail.srv.pl ([2001:1a68:0:c::4a]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g5eKi-0001LM-N2 for pgsql-general@lists.postgresql.org; Thu, 27 Sep 2018 22:00:31 +0000 Message-ID: <1538085606.6107.32.camel@sem-jarek-01.prv> Subject: Lost permission From: Jan Kowalski To: pgsql-general@lists.postgresql.org Date: Fri, 28 Sep 2018 00:00:06 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: jarek@srv.pl X-Spam-Score: -2.9 X-Spam-Level: -- List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.