Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C7BB31337B50 for ; Mon, 18 Oct 2010 16:17:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 42475-10 for ; Mon, 18 Oct 2010 19:17:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.anarazel.de (mail.anarazel.de [217.115.131.40]) by mail.postgresql.org (Postfix) with ESMTP id 57A381337B49 for ; Mon, 18 Oct 2010 16:17:28 -0300 (ADT) Received: from alap2.localnet (p579FB2EC.dip.t-dialin.net [87.159.178.236]) by mail.anarazel.de (Postfix) with ESMTPSA id 3D4AF448007; Mon, 18 Oct 2010 21:17:26 +0200 (CEST) From: Andres Freund To: pgsql-hackers@postgresql.org Subject: Re: Creation of temporary tables on read-only standby servers Date: Mon, 18 Oct 2010 21:17:24 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-rc6-andres-00006-g4193d91; KDE/4.5.1; x86_64; ; ) Cc: Tom Lane , Bruce Momjian References: <201010181751.o9IHpvP18317@momjian.us> <22902.1287425161@sss.pgh.pa.us> In-Reply-To: <22902.1287425161@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201010182117.24768.andres@anarazel.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/1235 X-Sequence-Number: 172275 On Monday 18 October 2010 20:06:01 Tom Lane wrote: > Bruce Momjian 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