Re: idea: global temp tables

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>, "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com>
Subject: Re: idea: global temp tables
Date: 2009-04-27 21:46:13
Message-ID: 49F5E155.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"A.M." <agentm(at)themactionfaction(dot)com> wrote:

> When will postgresql offer "global" temporary tables with data
> which are shared among sessions?

Well, that would certainly be far different from what the standard
calls a temporary table of any flavor. In the standard all temporary
tables are restricted to a single connection, and the scope is:

GLOBAL: Schema always present. Once materialized, present for as
long as the connection exists.

CREATED LOCAL: Schema always present. Once materialized, visible
only within a particular module.

DECLARED LOCAL: No permanent schema. Materialized when declared in a
compound statement (standard BEGIN/END; not related to transaction
boundaries), and automatically dropped on exit from the compound
statement.

Current PostgreSQL temporary tables are sort of a hybrid between
GLOBAL and DECLARED LOCAL temporary tables from the standard.

-Kevin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message A.M. 2009-04-27 21:51:16 Re: idea: global temp tables
Previous Message Andreas Pflug 2009-04-27 21:43:17 Re: Clean shutdown and warm standby