Re: idea: global temp tables - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: idea: global temp tables
Date
Msg-id B2CF45DE-97D6-4ED2-A240-8492932E855B@hi-media.com
Whole thread Raw
In response to Re: idea: global temp tables  ("A.M." <agentm@themactionfaction.com>)
Responses Re: idea: global temp tables  ("A.M." <agentm@themactionfaction.com>)
List pgsql-hackers
Hi,

Le 27 avr. 09 à 23:32, A.M. a écrit :
> When will postgresql offer "global" temporary tables with data which
> are shared among sessions? Such tables are great for transient data
> such as web session data where writing to the WAL is a waste. (On DB
> startup, the tables would simply be empty.) We're currently stuck
> with the memcached plugin which makes it impossible to use database
> constructs such as foreign keys against the temporary data.


If using 8.3 you can SET LOCAL synchronous_commit TO off; for web
session management transactions, it'll skip the WAL fsync'ing, which
is already a good start.

HTH,
--
dim





pgsql-hackers by date:

Previous
From: "A.M."
Date:
Subject: Re: idea: global temp tables
Next
From: Andreas Pflug
Date:
Subject: Re: Clean shutdown and warm standby