Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id ACEED633F1C for ; Mon, 26 Apr 2010 17:03:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 69693-07 for ; Mon, 26 Apr 2010 20:02:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id 031B3633D01 for ; Mon, 26 Apr 2010 17:02:54 -0300 (ADT) Received: by pwj9 with SMTP id 9so8729749pwj.19 for ; Mon, 26 Apr 2010 13:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=6gECaBjrerwyXREgEEAsyjeQ78a213wZpheaa14nY/4=; b=jZozGSnP1TU5jwkpQvEvTOJuO1vcEvg3NYu74NH7qnNKu9KdNikk7KADRsfPUscxjw 57j1bq3spyDYSqFgUfcHHmwxn0/fOf2jl0gAqUTCdr7mGqZ9/YGDLTu+KiRoVBYkTNtm mDt4b/4MvGx6mHe/+rIHDfoR9HrWLj1FUk16c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=s7TmYsBW3RaCg400J/18c4G/4wdtHXN3iPAn4DzWPQVPgKfCJ2B+WqOGuortDUuO0K 1tdm49DqUx82fgMaHOn4IC0Ws/YfvKbEgDffS17KuoIffbB3sd3kDL+nkPlIR6HdO/zD SUjamaOXtAV5GoE1wZxmjtHFIPm0OXF4EZMXc= MIME-Version: 1.0 Received: by 10.141.90.21 with SMTP id s21mr4442112rvl.118.1272312173335; Mon, 26 Apr 2010 13:02:53 -0700 (PDT) Received: by 10.231.11.11 with HTTP; Mon, 26 Apr 2010 13:02:53 -0700 (PDT) In-Reply-To: <1272310247.4161.5081.camel@ebony> References: <1272148142.4161.1598.camel@ebony> <1272181795.4161.1604.camel@ebony> <1272200241.4161.1670.camel@ebony> <1272310247.4161.5081.camel@ebony> Date: Mon, 26 Apr 2010 16:02:53 -0400 Message-ID: Subject: Re: global temporary tables From: Robert Haas To: Simon Riggs Cc: pgsql-hackers@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201004/1223 X-Sequence-Number: 161335 On Mon, Apr 26, 2010 at 3:30 PM, Simon Riggs wrote: > On Sun, 2010-04-25 at 11:35 -0400, Robert Haas wrote: > >> And I don't >> think you can even get that far, because I don't think too many people >> here are going to say that we shouldn't add global temporary tables >> unless we can also make them work with Hot Standby. > > The policy round here for some time has been that when we implement > things we make them work fully and seamlessly. I don't see why Hot > Standby would be singled out any more than any other feature, say > Windows support or tablespaces should be occasionally ignored. > > People need to get used to the new feature set, just as we had to with > HOT, subtransactions, prepared transactions, Gist etc.. That may require > a thwack from various people, but the responsibility lies with the new > feature implementor, not the person supporting existing code. > > I fully understand your wish to implement a partial feature with caveats > because I have argued that many times myself. But I've come to realise > that the best way is to build things so they work cleanly across the > board. Other developers can plan projects in the knowledge that they can > build directly on firm foundations, not fill in the cracks. In the end > this comes down to a choice as developers, do we help each other by > doing a full job, or do we leave unexploded bombs for each other through > short-termism? Now I understand this better myself, I act differently > and accept objections if people think a fuller, more complete design is > what is needed. Recent demonstrations of that available, both objecting > and accepting. > > Don't see this as an extra task, just see it as one of the many aspects > that will need to be considered when developing it. If you do that it > need not be additional work. I think you're looking at this the wrong way. If temporary tables have to work with Hot Standby in order for it to be committable, then we should never have committed Hot Standby in the first place because our current flavor of temporary tables doesn't. Was that an oversight on your part, or a recognition that you can't solve every problem in one commit? ...Robert