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 1mKO0k-00065q-EI for pgsql-general@arkaria.postgresql.org; Sun, 29 Aug 2021 16:50:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mKO0j-0003gX-Df for pgsql-general@arkaria.postgresql.org; Sun, 29 Aug 2021 16:50:21 +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 1mKO0j-0003gJ-4x for pgsql-general@lists.postgresql.org; Sun, 29 Aug 2021 16:50:21 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mKO0g-00075i-IT for pgsql-general@lists.postgresql.org; Sun, 29 Aug 2021 16:50:20 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E1E625C00C6; Sun, 29 Aug 2021 12:50:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 29 Aug 2021 12:50:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=E cTkMLCbZ5a/hrGavYeMDG/bf4q4A+MsH3fmR3KeavY=; b=cHT890kixV6cRLVfb LX6jP9vdnah8xHFd1kpN5VJaI9c1ddCiQCFtsVxzZ9bDkodqpZnTkCTbJBU/zrpQ /3+oApAeR5aAMvOOGb1yrp+SpxnNEN2xHvLzNbLKlHxGgx3U+ABTxpJS4EGjlDxI nvZQhUqXVUNwg7hwOObWjnvVYCbBesfDzqyFBwmsQqnMB/CZo/hh7MeU/BBkkaoY QyWsZ79eB431nF+PBdyAZzkK9IGiBopOqakceoZlm8Y9gp5GX5ohoQ9MI9OqLHoG DAQfTOyXhvsGi5VLvfGiqEas7V/xboIjEiwAvZ0/GzAcO+Os4PRLY/GndQCKuYEX 9PuEw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=EcTkMLCbZ5a/hrGavYeMDG/bf4q4A+MsH3fmR3Kea vY=; b=KnwqqD0XIkpwp5sfAhQqmgMLgdKorCEusbHhi0TKdO5Opgx62t8r6ADvx tyR8xf4fHtTELVWFyTv6LARCHZqYNLyWgbL+1WfzZC2OfqxglKGkeMrgBzORVrtu J36DF3JUTYptdLwQiyfHwXlT1fXXiVXvSfJ7nKupd8c1/O7uC6r/1nngGXZcKIO9 7+gVwBTkCQSp55L7J662Lxj1ku68STJsa3aGVn6nCL7CauGAP6phV87Wb518IPPz XGhXkt3BDNqa7YYskfDsXMtm2mu9wGD3jGigRMqbMKJRjbR1Va+nIxZC680/8HbJ mTh+HNm/PA93QN3I+Q5tMwCKTZYeQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddujedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeevveefve efueegffekkefhgeeiueffgfetueejvdfghfeujeejhfekjeelgedtgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 29 Aug 2021 12:50:16 -0400 (EDT) Subject: Re: database design with temporary tables To: ourdiaspora Cc: "pgsql-general@lists.postgresql.org" References: <0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com> From: Adrian Klaver Message-ID: <918c3f8f-cd38-aace-5e6d-7a67a764648e@aklaver.com> Date: Sun, 29 Aug 2021 09:50:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/29/21 9:36 AM, ourdiaspora wrote: > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Sunday, August 29th, 2021 at 5: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. > > Is there an alternative scenario, such as the user is able to create a new table with saves the session data for a maximum time (such as 24 hours), even up to a certain time if the web browser crashes for example? This is a it depends answer. Some factors in play: 1) Number of users over say a 24 hour period. 2) The size of the CSV files. 3) Is the data merge a one time thing or can it be repeated in a time period. 4) Are users going to be repeat customers? For this sort of thing I write out a detailed outline of the who/what/why/where/when. In doing that answers tend to follow. > >> >> The abo >> > > Incomplete response? > > > -- Adrian Klaver adrian.klaver@aklaver.com