Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj0uC-0002nN-HZ for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Mar 2016 08:46:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aj0uC-0004LV-0r for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Mar 2016 08:46:12 +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.84_2) (envelope-from ) id 1aj0uB-0004LK-Ku for pgsql-bugs@postgresql.org; Thu, 24 Mar 2016 08:46:11 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aj0u2-0008TR-Sy for pgsql-bugs@postgresql.org; Thu, 24 Mar 2016 08:46:11 +0000 MIME-Version: 1.0 Subject: BUG #14042: bug, PostgreSQL not cleanup temp table info after crash. To: pgsql-bugs@postgresql.org From: digoal@126.com Date: Thu, 24 Mar 2016 08:45:08 +0000 Message-ID: <20160324084508.2903.55060@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 14042 Logged by: digoal Email address: digoal@126.com PostgreSQL version: 9.5.1 Operating system: CentOS 6.x x64 Description: When PostgreSQL crashed during database have temp table, database not cleanup the temp table's info in pg_class. and there is some bad thing, if no one create the same name temp table after restart. this temp table will a zombie in pg_class, and vacuum freeze cann't reduce it's age and database's age. test: create temp table t(id int); don't disconnect this session. and then: pg_ctl stop -m immediate and then pg_ctl start and then select * from pg_namespace; select age(relfrozenxid),relname from pg_class where relname='t'; select txid_current(); generate some xid; vauum freeze pg_temp_??.t; and the table not reduce age. select age(relfrozenxid),relname from pg_class where relname='t'; and database's age cann't reduce by vacuum freeze; -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs