Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKOoK-0007iy-PF for pgsql-general@arkaria.postgresql.org; Sun, 29 Aug 2021 17:41:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKOoJ-00086C-PU for pgsql-general@arkaria.postgresql.org; Sun, 29 Aug 2021 17:41:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKOoJ-00084m-Eb for pgsql-general@lists.postgresql.org; Sun, 29 Aug 2021 17:41:35 +0000 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mKOoE-0007QM-Hd for pgsql-general@lists.postgresql.org; Sun, 29 Aug 2021 17:41:34 +0000 Received: by mail-qk1-x734.google.com with SMTP id a10so13089731qka.12 for ; Sun, 29 Aug 2021 10:41:30 -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-transfer-encoding:content-language; bh=frNiS4zdDKxoypQGZTt4gGMMKfqBOnVrAFkoTu0R/Hw=; b=MaU/yU+55a/PhczDF7Qpl+tDPwah4OfA4w6EIPOkdMTryxsCoZmh6OdVUY0kA/EWcU tjoN4Us40fSFtVYxOxAzEviNGmZpwH193z/N1OXiICi6oGxyFL7ewGTsRkd4WE5SZqBk sb1OYOjYjDioXw9uYT7y2gC4NP+iWSy/VnjvexafpRqhNTxw5suiTtxl7VPbVtuE2in2 zctZIDv80isr/r8YOzIvIELNb1yrHQR0fHHj9JjLa+Dg4x4s+cU+t6GXMw9HuSanQhuF p+j7f7+XBnkQE03tqyYNvGXGcZM8A8OnwkfZ50gcb9wG2s0erYoMQ58QimIbQ8fBqTPP zgNQ== 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-transfer-encoding :content-language; bh=frNiS4zdDKxoypQGZTt4gGMMKfqBOnVrAFkoTu0R/Hw=; b=aGKaGGQmSm2KqvdDhkWIIwaQY+OtUVBh9rNeNdwWNjbqMyiRoae6Ow2PaRoTSlunkd ErLysHF4U6Um9WbwX2Xu2vssg5m/1IKA/pLzZJnGGGkIF/rZl5cLGpkWdK0f59BjvR7D 8qHakMfCwrjOHB8hqUOW+KesNHGMZmU6l0dsMh+6H2ckf8ZJnn0cZ391GnbB3EEtpGig D1T2pTN94VTf8fRstc1SHNtdSYnHVQEzgovQHkBzODuMeJfyGBjat/z+sVkKwO5Pm8IY avjd8NKhuLdLj2VoADRBGhvnU248wmZrO02h097A5ujSizF3+2HZLTMHmC/CWXrKp8jA lgaQ== X-Gm-Message-State: AOAM530vY8OAeSHCXleLYbK5SY800Y7FguA3Bo1Ak3qbKeyN3WmS8lpv 1rU0sb2Rf0mz3D/cUsDuC82blAw195TFLQ== X-Google-Smtp-Source: ABdhPJwd/ZaMTu3Agr2FiGTq8Qg9x/AN1fTO1n1+VQSRd4+joUYXMMKRXWAXiCUVOX6/s8zgkUw3PA== X-Received: by 2002:a05:620a:2a14:: with SMTP id o20mr19061948qkp.286.1630258888745; Sun, 29 Aug 2021 10:41:28 -0700 (PDT) Received: from [192.168.2.100] (pool-100-8-54-81.nwrknj.fios.verizon.net. [100.8.54.81]) by smtp.gmail.com with ESMTPSA id q22sm3656275qtn.25.2021.08.29.10.41.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Aug 2021 10:41:28 -0700 (PDT) Subject: Re: database design with temporary tables To: pgsql-general@lists.postgresql.org References: <0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com> From: Mladen Gogala Message-ID: Date: Sun, 29 Aug 2021 13:41:28 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/29/21 12:24 PM, Adrian Klaver wrote: > Presumably not. Temporary tables only live at most for the length of a > session. It would be a really bad idea to hold sessions open for 24 > hours. That is assuming nothing else causes the session to drop and > the data to be lost. Well, that's precisely how application servers work. The allocate connection pool and keep them open for a very long time. -- Mladen Gogala Database Consultant Tel: (347) 321-1217 https://dbwhisperer.wordpress.com