Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2gZG-0004qm-S9 for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2019 18:51:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i2gZF-0007mG-KN for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2019 18:51:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2gZF-0007Q6-3W for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2019 18:51:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i2gZD-0007vP-0l for pgsql-general@postgresql.org; Tue, 27 Aug 2019 18:51:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7RIpdhM009769; Tue, 27 Aug 2019 14:51:39 -0400 From: Tom Lane To: Jerry Sievers cc: pgsql-general@postgresql.org Subject: Re: No warning/error trying to vacuum other session's temp table In-reply-to: <87zhju7ar0.fsf@jsievers.enova.com> References: <87zhju7ar0.fsf@jsievers.enova.com> Comments: In-reply-to Jerry Sievers message dated "Tue, 27 Aug 2019 12:56:35 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9767.1566931899.1@sss.pgh.pa.us> Date: Tue, 27 Aug 2019 14:51:39 -0400 Message-ID: <9768.1566931899@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jerry Sievers writes: > As seen below, the command response VACUUM is output , but adding the > VERBOSe keyword results in no additional output. Yeah, per the code: /* * Silently ignore tables that are temp tables of other backends --- * trying to vacuum these will lead to great unhappiness, since their * contents are probably not up-to-date on disk. (We don't throw a * warning here; it would just lead to chatter during a database-wide * VACUUM.) */ if (RELATION_IS_OTHER_TEMP(onerel)) { relation_close(onerel, lmode); PopActiveSnapshot(); CommitTransactionCommand(); return false; } At the point where this is being done, we don't know whether the table was explicitly named or not, so we really can't issue a message. Perhaps it'd make sense to add an additional test earlier, where we do know that. On the other hand, nobody has ever complained about this before. regards, tom lane