Re: [Proposal] Global temporary tables
Wenjing Zeng <wjzeng2012@gmail.com>
From: Wenjing Zeng <wjzeng2012@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Pavel Stehule <pavel.stehule@gmail.com>,
Justin Pryzby <pryzby@telsasoft.com>,
wenjing <wenjing@gmail.com>,
Andrew Bille <andrewbille@gmail.com>,
Tony Zhu <Tony.zhu@ww-it.cn>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-03-02T02:52:54Z
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
> 2022年2月27日 12:13,Andres Freund <andres@anarazel.de> 写道: > > Hi, > > On 2022-02-27 04:17:52 +0100, Pavel Stehule wrote: >>> You redirect stats from pg_class and pg_statistics to a local hash table. >>> This is pretty hairy :( > > As is I think the patch is architecturally completely unacceptable. Having > code everywhere to redirect to manually written in-memory catalog table code > isn't maintainable. > > >>> I guess you'd also need to handle pg_statistic_ext and ext_data. >>> pg_stats doesn't work, since the data isn't in pg_statistic - it'd need to >>> look >>> at pg_get_gtt_statistics. >> >> Without this, the GTT will be terribly slow like current temporary tables >> with a lot of problems with bloating of pg_class, pg_attribute and >> pg_depend tables. > > I think it's not a great idea to solve multiple complicated problems at > once... I'm trying to break down the entire implementation into multiple sub-patches. Regards, Wenjing. > > Greetings, > > Andres Freund > >