Re: Implementation of global temporary tables?

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Zhaomo Yang <zhy001(at)cs(dot)ucsd(dot)edu>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Implementation of global temporary tables?
Date: 2015-07-15 15:36:12
Message-ID: CANP8+jJ+V0ihiERMD9PgybYW51Hpk_w=25UjR3VQyT9KkmMADg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15 July 2015 at 16:28, Andres Freund <andres(at)anarazel(dot)de> wrote:

> On 2015-07-15 16:24:52 +0100, Simon Riggs wrote:
> > It may be possible to do this, though I'm sure there's a wrinkle
> somewhere.
> > But there doesn't seem to be a need to overload the main feature request
> > with additional requirements. Doing that is just scope creep that
> prevents
> > us getting features out. Nice, simple patches from newer developers.
> Later
> > tuning and tweaking from more expert community members.
>
> I think that's generally a fair point. But here we're discussing to add
> a fair amount of wrinkles with the copy approach. The fact alone that
> the oid is different will have some ugly consequences.
>

Why? We are creating a local temp table LIKE the global temp table. That is
already a supported operation. So there is no "different oid".

> So we add complexity, just to shift it into different places later? I'm
> not sure that's a good idea.
>

There's no complexity in a simple temp table like. We can do this now with
triggers.

--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-07-15 15:39:47 Re: Implementation of global temporary tables?
Previous Message Andres Freund 2015-07-15 15:28:35 Re: Implementation of global temporary tables?