Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces

Поиск
Список
Период
Сортировка
Искать
От
Mark Dilger
Тема
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces
Дата
в 01:50:04
Msg-id
73F3F3FB-E03E-4C17-BB6D-36CB0B990DBB@gmail.com
Ответ на
Список
Дерево обсуждения
[HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Jerry Sievers <gsievers19@comcast.net>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Andres Freund <andres@anarazel.de>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces "Sven R. Kunze" <srkunze@mail.de>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Claudio Freire <klaussfreire@gmail.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Andres Freund <andres@anarazel.de>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Christoph Berg <myon@debian.org>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Use of non-restart-safe storage by temp_tablespaces Joe Conway <mail@joeconway.com>

> On May 29, 2017, at 11:53 AM, Bruce Momjian  wrote:
> 
> Right now we don't document that temp_tablespaces can use
> non-restart-safe storage, e.g. /tmp, ramdisks.  Would this be safe? 
> Should we document this?

The only safe way to do temporary tablespaces that I have found is to extend
the grammar to allow CREATE TEMPORARY TABLESPACE, and then refuse
to allow the creation of any non-tempoary table (or index on same) in that
tablespace.  Otherwise, it is too easy to be surprised to discover that your
table contents have gone missing.

If the project wanted to extend the grammar and behavior in this direction,
maybe temp_tablespaces would work that way?  I'm not so familiar with what
the temp_tablespaces GUC is for -- only ever implemented what I described
above.

Mark Dilger


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Nikita Glukhov
Дата:
FAQ