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 1hWjhA-00054n-VZ for pgsql-general@arkaria.postgresql.org; Fri, 31 May 2019 15:43:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hWjh9-0004HD-MS for pgsql-general@arkaria.postgresql.org; Fri, 31 May 2019 15:43:51 +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 1hWjh9-0004Gl-8n for pgsql-general@lists.postgresql.org; Fri, 31 May 2019 15:43:51 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWjh6-0007LQ-BW for pgsql-general@postgresql.org; Fri, 31 May 2019 15:43:50 +0000 Received: from [192.168.127.1] (port=11971 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1hWjh3-000KWh-7d; Fri, 31 May 2019 15:43:45 +0000 Received: from [127.0.0.1] (port=19241 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1hWjh2-000Op1-Iz; Fri, 31 May 2019 15:43:44 +0000 From: Andrew Gierth To: Ivan Voras Cc: pgsql-general@postgresql.org Subject: Re: Feature request (or at least discussion): enable autovaccum on temp tables In-Reply-To: (Ivan Voras's message of "Fri, 31 May 2019 17:25:26 +0200") Message-ID: <87r28eaaxm.fsf@news-spur.riddles.org.uk> References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 31 May 2019 16:43:44 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Ivan" == Ivan Voras writes: Ivan> Since AFAIK temp tables are very close to unlogged ordinary Ivan> tables, what would stop this feature from being implemented? The key difference between temp tables and other tables is that temp table data does not use the shared_buffers but is buffered only in backend-local memory. This means that other processes (like, say, an autovacuum process) can not access the content of temp tables. So what you want is not possible. -- Andrew (irc:RhodiumToad)