From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Mladen Gogala <gogala(dot)mladen(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: database design with temporary tables |
Date: | 2021-08-29 18:26:25 |
Message-ID: | c445dbed-f832-273a-c183-afb7a41b5186@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2021-08-29 19:47:11 | Re: Can we get rid of repeated queries from pg_dump? |
Previous Message | Mladen Gogala | 2021-08-29 17:41:28 | Re: database design with temporary tables |