Re: Creation of temporary tables on read-only standby servers

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, Robert Haas <robertmhaas(at)gmail(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Andres Freund <andres(at)anarazel(dot)de>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Creation of temporary tables on read-only standby servers
Date: 2010-10-23 13:49:37
Message-ID: 201010231349.o9NDnb408416@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Greg Stark wrote:
> >> It seems to me simpler and more direct to just nail relcache
> >> entries for these objects into memory and manipulate them directly.
> >> They can be constructed from the global catalog tables and then
> >> tweaked to point to the backend local temporary tables.
>
> > Funny, but that is how I implemented temporary tables in 1999 and lasted
> > until 2002 when schema support was added. It actually worked because
> > all the lookups go through the syscache.
>
> ... and as I recall, we got rid of it principally because the temp
> tables weren't visible to ordinary catalog lookups, thus breaking
> all sorts of client-side logic.

Yes, I felt lucky the breakage was so minimal.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2010-10-23 14:31:05 Re: ask for review of MERGE
Previous Message Marko Tiikkaja 2010-10-23 12:50:01 Re: ask for review of MERGE