Re: [Proposal] Global temporary tables
Prabhat Sahu <prabhat.sahu@enterprisedb.com>
From: Prabhat Sahu <prabhat.sahu@enterprisedb.com>
To: 曾文旌(义从) <wenjing.zwj@alibaba-inc.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, Konstantin Knizhnik <k.knizhnik@postgrespro.ru>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, 蔡松露(子嘉) <zijia@taobao.com>, "Cai, Le" <le.cai@alibaba-inc.com>, 萧少聪(铁庵) <shaocong.xsc@alibaba-inc.com>
Date: 2020-02-24T09:44:34Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
PageAddItemExtended(): Add LP_UNUSED assertion.
- 30aaab26e521 14.0 cited
-
Remove temporary files after backend crash
- cd91de0d1795 14.0 cited
-
Fix comment in indexing.c
- 9fd2952cf492 14.0 cited
-
Fix failure to ignore leftover temp tables after a server crash.
- 6919b7e32947 9.3.0 cited
On Fri, Feb 21, 2020 at 9:10 PM 曾文旌(义从) <wenjing.zwj@alibaba-inc.com> wrote: > Hi, > I have started testing the "Global temporary table" feature, > That's great, I see hope. > from "gtt_v11-pg13.patch". Below is my findings: > > -- session 1: > postgres=# create global temporary table gtt1(a int); > CREATE TABLE > > -- seeeion 2: > postgres=# truncate gtt1 ; > ERROR: could not open file "base/13585/t3_16384": No such file or > directory > > is it expected? > > Oh ,this is a bug, I fixed it. > Thanks for the patch. I have verified the same, Now the issue is resolved with v12 patch. Kindly confirm the below scenario: postgres=# create global temporary table gtt1 (c1 int unique); CREATE TABLE postgres=# create global temporary table gtt2 (c1 int references gtt1(c1) ); ERROR: referenced relation "gtt1" is not a global temp table postgres=# create table tab2 (c1 int references gtt1(c1) ); ERROR: referenced relation "gtt1" is not a global temp table Thanks, Prabhat Sahu