Re: [Proposal] Global temporary tables
曾文旌 (义从) <wenjing.zwj@alibaba-inc.com>
From: 曾文旌 <wenjing.zwj@alibaba-inc.com>
To: Prabhat Sahu <prabhat.sahu@enterprisedb.com>
Cc: tushar <tushar.ahuja@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-04-20T09:31:43Z
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
> 2020年4月17日 下午7:26,Prabhat Sahu <prabhat.sahu@enterprisedb.com> 写道: > > On Fri, Apr 17, 2020 at 2:44 PM 曾文旌 <wenjing.zwj@alibaba-inc.com <mailto:wenjing.zwj@alibaba-inc.com>> wrote: > > I improved the logic of the warning message so that when the gap between relfrozenxid of GTT is small, > it will no longer be alarmed message. > > Hi Wenjing, > Thanks for the patch(v26), I have verified the previous related issues, and are working fine now. > Please check the below scenario VACUUM from a non-super user. > > -- Create user "test_gtt", connect it , create gtt, VACUUM gtt and VACUUM / VACUUM FULL > postgres=# CREATE USER test_gtt; > CREATE ROLE > postgres=# \c postgres test_gtt > You are now connected to database "postgres" as user "test_gtt". > postgres=> CREATE GLOBAL TEMPORARY TABLE gtt1(c1 int); > CREATE TABLE > > -- VACUUM gtt is working fine, whereas we are getting huge WARNING for VACUUM / VACUUM FULL as below: > postgres=> VACUUM gtt1 ; > VACUUM > postgres=> VACUUM; > WARNING: skipping "pg_statistic" --- only superuser or database owner can vacuum it > WARNING: skipping "pg_type" --- only superuser or database owner can vacuum it > WARNING: skipping "pg_toast_2600" --- only table or database owner can vacuum it > WARNING: skipping "pg_toast_2600_index" --- only table or database owner can vacuum it > > ... ... > ... ... > > WARNING: skipping "_pg_foreign_tables" --- only table or database owner can vacuum it > WARNING: skipping "foreign_table_options" --- only table or database owner can vacuum it > WARNING: skipping "user_mapping_options" --- only table or database owner can vacuum it > WARNING: skipping "user_mappings" --- only table or database owner can vacuum it > VACUUM I think this is expected, and user test_gtt does not have permission to vacuum the system table. This has nothing to do with GTT. Wenjing > > -- > With Regards, > Prabhat Kumar Sahu > EnterpriseDB: http://www.enterprisedb.com <http://www.enterprisedb.com/>