Re: Creation of temporary tables on read-only standby servers - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Creation of temporary tables on read-only standby servers
Date
Msg-id 201010182117.24768.andres@anarazel.de
Whole thread Raw
In response to Re: Creation of temporary tables on read-only standby servers  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Creation of temporary tables on read-only standby servers
List pgsql-hackers
On Monday 18 October 2010 20:06:01 Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Currently it isn't possible to create temporary tables on read-only
> > standby servers, and I don't see it listed on the TODO list.  Can I add
> > it?
> 
> Not unless you have some credible concept for how it might ever be
> implemented.  You can't create temp tables because you can't modify
> system catalogs, and if you did somehow create them you couldn't put
> anything in them because you can't generate XIDs on a slave ... much
> less commit them.  We have talked about ways that temp tables might be
> created without touching the "real" system catalogs, but the XID issue
> seems a complete showstopper.
Hm. Wouldnt it be possible to use virtual xids for that purpose? They are 
never seen outside of that session anyway...

Andres


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: create tablespace fails silently, or succeeds improperly
Next
From: Tom Lane
Date:
Subject: Re: create tablespace fails silently, or succeeds improperly