From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Ivan Voras <ivoras@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Feature request (or at least discussion): enable autovaccum on temp tables
Date: Fri, 31 May 2019 16:43:44 +0100
Message-ID: <87r28eaaxm.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <CAF-QHFXtnjUejgacT6O5hvVvqCCvZaSzxvLx1XZa9i4kFFePfA@mail.gmail.com>
References: <CAF-QHFXtnjUejgacT6O5hvVvqCCvZaSzxvLx1XZa9i4kFFePfA@mail.gmail.com>
>>>>> "Ivan" == Ivan Voras <ivoras@gmail.com> 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)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: andrew@tao11.riddles.org.uk, ivoras@gmail.com
Subject: Re: Feature request (or at least discussion): enable autovaccum on temp tables
In-Reply-To: <87r28eaaxm.fsf@news-spur.riddles.org.uk>
References: <CAF-QHFXtnjUejgacT6O5hvVvqCCvZaSzxvLx1XZa9i4kFFePfA@mail.gmail.com> <87r28eaaxm.fsf@news-spur.riddles.org.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox