Re: [Proposal] Global temporary tables
曾文旌 (义从) <wenjing.zwj@alibaba-inc.com>
From: 曾文旌(义从) <wenjing.zwj@alibaba-inc.com>
To: Robert Haas <robertmhaas@gmail.com>,
Pavel Stehule <pavel.stehule@gmail.com>
Cc: "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-01-30T14:17:29Z
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_v9-pg13.patch (application/octet-stream) patch v9
- (unnamed) (text/plain)
> 2020年1月29日 下午9:48,Robert Haas <robertmhaas@gmail.com> 写道: > > On Tue, Jan 28, 2020 at 12:12 PM 曾文旌(义从) <wenjing.zwj@alibaba-inc.com> wrote: >>> Opinion by Pavel >>> + rel->rd_islocaltemp = true; <<<<<<< if this is valid, then the name of field "rd_islocaltemp" is not probably best >>> I renamed rd_islocaltemp >> >> I don't see any change? >> >> Rename rd_islocaltemp to rd_istemp in global_temporary_table_v8-pg13.patch > > In view of commit 6919b7e3294702adc39effd16634b2715d04f012, I think > that this has approximately a 0% chance of being acceptable. If you're > setting a field in a way that is inconsistent with the current use of > the field, you're probably doing it wrong, because the field has an > existing purpose to which new code must conform. And if you're not > doing that, then you don't need to rename it. Thank you for pointing it out. I've rolled back the rename. But I still need rd_localtemp to be true, The reason is that 1 GTT The GTT needs to support DML in read-only transactions ,like local temp table. 2 GTT does not need to hold the lock before modifying the index buffer ,also like local temp table. Please give me feedback. Wenjing