In this SO Answer about PostgreSQL and Temp tables, they say this about temp tables:
It is only visible within the current session and dies at the end of it. When created with ON COMMIT DROP it dies at the end of the transaction.
given a sample sql like this:
CREATE TEMP TABLE temp1 AS
SELECT dataid
, register_type
, timestamp_localtime
, read_value_avg
FROM rawdata.egauge
WHERE register_type LIKE '%gen%'
ORDER BY dataid, timestamp_localtime;
Does this mean that I could have a query that is ran multiple times at the same time and each query that is ran .. which would have it's own scope .. would have it's own copy/version of it's temp table? So query_1's temp table wouldn't mess with query_2's temp table, if both are running "at the same time".
For example:
20 people all request the same web page "at the same time". The webserver then executes the same query for each request, which means 20 queries are ran at the same time. (of course the data might be different, per request .. etc).
Is my understanding of this correct? Is there way I can test this using pgAdmin4?