[Proposal] Global temporary tables
曾文旌 (义从) <wenjing.zwj@alibaba-inc.com>
From: 曾文旌(义从) <wenjing.zwj@alibaba-inc.com>
To: tushar <tushar.ahuja@enterprisedb.com>
Cc: "Prabhat Sahu" <prabhat.sahu@enterprisedb.com>, "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-03-17T03:44:15Z
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
Attachments
- global_temporary_table_v20-pg13.patch (application/octet-stream) patch v20
- (unnamed) (text/plain)
> 2020年3月13日 下午8:40,tushar <tushar.ahuja@enterprisedb.com> 写道: > > On 3/9/20 10:01 PM, 曾文旌(义从) wrote: >> Fixed in global_temporary_table_v18-pg13.patch. > > Thanks Wenjing. > > I am getting this error "ERROR: could not open file "base/13589/t3_16440": No such file or directory" if max_active_global_temporary_table set to 0 > > Please refer this scenario - > > postgres=# create global temp table tab1 (n int ) with ( on_commit_delete_rows='true'); > CREATE TABLE > postgres=# insert into tab1 values (1); > INSERT 0 1 > postgres=# select * from tab1; > n > --- > (0 rows) > > postgres=# alter system set max_active_global_temporary_table=0; > ALTER SYSTEM > postgres=# \q > [tushar@localhost bin]$ ./pg_ctl -D data/ restart -c -l logs123 > > waiting for server to start.... done > server started > > [tushar@localhost bin]$ ./psql postgres > psql (13devel) > Type "help" for help. > > postgres=# insert into tab1 values (1); > ERROR: could not open file "base/13589/t3_16440": No such file or directory > postgres=# Thanks for review It is a bug, I fixed in global_temporary_table_v20-pg13.patch Wenjing