Re: database design with temporary tables - Mailing list pgsql-general

From Mladen Gogala
Subject Re: database design with temporary tables
Date
Msg-id aeb0063f-c820-2970-2a3b-3820c9eef239@gmail.com
Whole thread Raw
In response to Re: database design with temporary tables  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On 8/29/21 2:26 PM, Adrian Klaver wrote:
> 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. 

Yes, you're right. And that is very convenient. I also prefer temporary 
tables with ON COMMIT DELETE ROWS so that I don't have leftovers between 
transactions. There is also pgtt extension by Giles Darold which 
emulates Oracle global temporary tables:

https://github.com/darold/pgtt#use-of-the-extension

I have never particularly liked Oracle's implementation of temporary 
tables, local or global,  so I have no problems with questions like 
that. BTW, I have compared Oracle's implementation with other 
implementations here:

https://dbwhisperer.wordpress.com/2019/03/18/private-temporary-tables-oracle-18c/

I could have used Postgres instead of the SQL Server, the comparison 
would read the same, except for the "#" character which denotes 
temporary table in SQL Server.

Regards


-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com




pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Can we get rid of repeated queries from pg_dump?
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: Can we get rid of repeated queries from pg_dump?