From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: database design with temporary tables
Date: Sun, 29 Aug 2021 11:26:25 -0700
Message-ID: <c445dbed-f832-273a-c183-afb7a41b5186@aklaver.com> (raw)
In-Reply-To: <ebb9eeb4-8815-65a9-c63e-3d38ff044116@gmail.com>
References: <IRuoNkHXtafj7Vm_RhI-AB56qHPVRSDRD95NmX9lxlsQvmsK361slJ4ONjoP0GvX8tNsyXUD5KF1TW21uJyh15BDdrQCDHFDvPXa1Nu-eVE=@protonmail.com>
<0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com>
<ebb9eeb4-8815-65a9-c63e-3d38ff044116@gmail.com>
On 8/29/21 10:41 AM, Mladen Gogala wrote:
>
> 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.
The pool is maintained, the individual connections(sessions) come and
go. Otherwise there would be no point to having a pool. Every time the
connection(session) is closed the temporary table disappears.
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, gogala.mladen@gmail.com
Subject: Re: database design with temporary tables
In-Reply-To: <c445dbed-f832-273a-c183-afb7a41b5186@aklaver.com>
References: <IRuoNkHXtafj7Vm_RhI-AB56qHPVRSDRD95NmX9lxlsQvmsK361slJ4ONjoP0GvX8tNsyXUD5KF1TW21uJyh15BDdrQCDHFDvPXa1Nu-eVE=@protonmail.com> <0e9373c9-565c-5edb-5c71-b3ea40be9473@aklaver.com> <ebb9eeb4-8815-65a9-c63e-3d38ff044116@gmail.com> <c445dbed-f832-273a-c183-afb7a41b5186@aklaver.com>
* 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