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.92) (envelope-from ) id 1jEGVe-0002na-UK for pgsql-general@arkaria.postgresql.org; Tue, 17 Mar 2020 18:00:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEGVc-0004au-JA for pgsql-general@arkaria.postgresql.org; Tue, 17 Mar 2020 18:00:08 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEGVc-0004Yr-73 for pgsql-general@lists.postgresql.org; Tue, 17 Mar 2020 18:00:08 +0000 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEGVU-0000Ts-Mo for pgsql-general@lists.postgresql.org; Tue, 17 Mar 2020 18:00:07 +0000 Received: by mail-oi1-x243.google.com with SMTP id x5so4994918oic.13 for ; Tue, 17 Mar 2020 11:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=dkxju8T+QcydV2PdmgWywDe5Npt8t6mgZgxzOyl6bj8=; b=S19LZnwqcKG+7h7SefFR7CugB4SvHRKQBs+8mdnIc9iy7XiVvoRgH/w5DuUDoOR+1g GP/g+9/On/z51Ekjd3xjpcgPd+xl1uPF4CBstOtn/d/uQSMH4uDP66G3j0gGkkIevBWN 173ZtkjyUv9pw+vx7a0rIH/h833Sg1zalcShbldVnyz5xDnesDg2tW6QB3yZbfUZfToH FcEoyaqmpylBkIgDs5Bf7Jp1EGGTtunJ/8JMq0P9gO6B7WdNrBdVQGVCBOWSXK3+4fYp BIipgMIxziRqW4w8D5miXFAkB5a0O3jZUkXcjlTm1WeSBz9r9ZKQWIn6K+CL9pB3Bqyd 6VeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=dkxju8T+QcydV2PdmgWywDe5Npt8t6mgZgxzOyl6bj8=; b=ht16l/uXSdgS7lDAgx2V8zDpOUsjfKJe3uswX0NgK4JH0rPS9Wad6dZQ8NQkRJgME3 3pduza7h4aaPat039zUjT1nw2xfT6tIQZu1L00R2foOhTgGiZ0tcmx4+RubpVJdzGm8W NeIz+t88ic1+2IKpKG8LILUBSQmwmfeldek3VTQrFX8Ugx+6gw+mrHg8SV36LdIM3ky8 /oBEHpU3mmJmDZJ/gSZdDcAbloqpNLbJa1qw1nvTipobBhdE9emzG0fRyaI+dlmYC1Kn wKFqvcqkqskFsxjZqHDmluNLLJbCekOrfV21ufvHDZBbMd55l29OM6SlzwKMT0T0Ct5c 2t+A== X-Gm-Message-State: ANhLgQ3m5dnAmxKVeqNxEzadRISV8OntGkCTHhUTCELEusbIUVXfRGcM ZlbDb1wACIs5uo3p2wbxmDTWPz9Ok6A= X-Google-Smtp-Source: ADFU+vsOMh5Rpl4d9r1KAQDuqz0llLmMPGtWWA1kXWNYa3sFss76cc8Cv+pAFWQx+EZbOk6u33NAxg== X-Received: by 2002:aca:7506:: with SMTP id q6mr48682oic.73.1584467998595; Tue, 17 Mar 2020 10:59:58 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id x17sm1260593oif.28.2020.03.17.10.59.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Mar 2020 10:59:58 -0700 (PDT) Subject: Re: Temporary tablespaces on a RAM disk To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <427c0a2d-77aa-d931-3738-0128a069c2df@gmail.com> Date: Tue, 17 Mar 2020 12:59:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------2C0868B4E6F96A44D8A8F7C5" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------2C0868B4E6F96A44D8A8F7C5 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 3/17/20 12:19 PM, David G. Johnston wrote: > On Tue, Mar 17, 2020 at 2:49 AM Daniel Westermann (DWE) > > wrote: > > is someone using temporary tablespaces on a RAM disk ? Any experiences > with that? > I did some quick tests and checked the archives but could not find any > information that either confirmed it is a bad idea nor the opposite. > > > There is a nice big bold warning callout in the documentation that covers > this explicitly. > > https://www.postgresql.org/docs/12/manage-ag-tablespaces.html Warning Placing a tablespace on a temporary file system like a RAM disk risks the reliability of the entire cluster. But aren't temporary files removed when you restart Postgres?  (I'm assuming that temp_tablespaces is treated "the same" as data/pgsql_tmp.  Is that a false assumption?) -- Angular momentum makes the world go 'round. --------------2C0868B4E6F96A44D8A8F7C5 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

On 3/17/20 12:19 PM, David G. Johnston wrote:
On Tue, Mar 17, 2020 at 2:49 AM Daniel Westermann (DWE) <daniel.westermann@dbi-services.com> wrote:
is someone using temporary tablespaces on a RAM disk ? Any experiences with that?
I did some quick tests and checked the archives but could not find any information that either confirmed it is a bad idea nor the opposite.

There is a nice big bold warning callout in the documentation that covers this explicitly.


Warning
Placing a tablespace on a temporary file system like a RAM disk risks the reliability of the entire cluster.

But aren't temporary files removed when you restart Postgres?  (I'm assuming that temp_tablespaces is treated "the same" as data/pgsql_tmp.  Is that a false assumption?)


--
Angular momentum makes the world go 'round.
--------------2C0868B4E6F96A44D8A8F7C5--