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:52:58 |
Message-ID: | CANP8+jJF4vF_pVcBzSUAHtvUy7E+5eQ1xd-t0YnNH3n_aD7FEg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 15 July 2015 at 16:44, Andres Freund <andres(at)anarazel(dot)de> wrote:
> On 2015-07-15 16:36:12 +0100, Simon Riggs wrote:
> > On 15 July 2015 at 16:28, Andres Freund <andres(at)anarazel(dot)de> wrote:
> > > 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".
>
> Then your locking against ALTER, DROP etc. isn't going to work.
>
There would be two objects, both locked. The temp table is just nice and
simple. No problem.
Your optimization may work; I hope it does. My approach definitely will. So
we could choose either.
--
Simon Riggs http://www.2ndQuadrant.com/
<http://www.2ndquadrant.com/>
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2015-07-15 16:19:59 | Re: ctidscan as an example of custom-scan (Re: [v9.5] Custom Plan API) |
Previous Message | Andres Freund | 2015-07-15 15:44:05 | Re: Implementation of global temporary tables? |