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 1fa0QF-00082Q-83 for pgsql-general@arkaria.postgresql.org; Mon, 02 Jul 2018 15:07:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fa0QD-0005Rg-3h for pgsql-general@arkaria.postgresql.org; Mon, 02 Jul 2018 15:07:21 +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 1fa0QC-0005RZ-SP for pgsql-general@lists.postgresql.org; Mon, 02 Jul 2018 15:07:20 +0000 Received: from evolu-s.it ([94.23.66.144] helo=smtp.evolu-s.it) by magus.postgresql.org with smtp (Exim 4.89) (envelope-from ) id 1fa0Q5-0006WS-P7 for pgsql-general@lists.postgresql.org; Mon, 02 Jul 2018 15:07:20 +0000 Received: from [192.168.1.163] ([79.6.30.247]) by smtp.evolu-s.it ; Mon, 2 Jul 2018 17:07:10 +0200 Subject: Re: Not able to update some rows in a table To: pgsql-general@lists.postgresql.org References: From: Moreno Andreo Message-ID: Date: Mon, 2 Jul 2018 17:07:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: it List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Il 02/07/2018 16:51, Marco Fochesato ha scritto: > Dear all, > I have a table with 21 columns. > Primary key is done with 20 of these colums. > > I have 3.313 records. > I don't know why, but I'm not able to update some of these records. > I don't understand, it seems that I'm not able to fetch. Could you post some of the statement you execute? If you are unable to SELECT some record, it's quite straightforward that you can't UPDATE them. > It happens with Pgadmin, with Python Psycopg2 and also through > Libreoffice Base. OS? PG Version? > > Looking to the properties of the table in Pgadmin, I can see only the > estimated number > of rows. Counted rows are 'not counted'. Seems that autovacuum is not active, or has never run (but i'm quite sure it's not related to your problem, so it can be investigated later). Cheers Moreno.-