From: | 曾文旌 <wenjing(dot)zwj(at)alibaba-inc(dot)com> |
---|---|
To: | Erik Rijkers <er(at)xs4all(dot)nl> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Prabhat Sahu <prabhat(dot)sahu(at)enterprisedb(dot)com>, tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Konstantin Knizhnik <k(dot)knizhnik(at)postgrespro(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, "蔡松露(子嘉)" <zijia(at)taobao(dot)com>, "Cai, Le" <le(dot)cai(at)alibaba-inc(dot)com>, "萧少聪(铁庵)" <shaocong(dot)xsc(at)alibaba-inc(dot)com> |
Subject: | Re: [Proposal] Global temporary tables |
Date: | 2020-04-09 13:28:25 |
Message-ID: | FF4B190F-134A-440A-B325-7510BBCD3AF3@alibaba-inc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> 2020年4月7日 下午6:40,Erik Rijkers <er(at)xs4all(dot)nl> 写道:
>
> On 2020-04-07 10:57, 曾文旌 wrote:
>
>> [global_temporary_table_v24-pg13.patch ]
>
> Hi,
>
> With gcc 9.3.0 (debian stretch), I see some low-key protests during the build:
>
> index.c: In function ‘index_drop’:
> index.c:2051:8: warning: variable ‘rel_persistence’ set but not used [-Wunused-but-set-variable]
> 2051 | char rel_persistence;
> | ^~~~~~~~~~~~~~~
> storage_gtt.c: In function ‘gtt_force_enable_index’:
> storage_gtt.c:1252:6: warning: unused variable ‘indexOid’ [-Wunused-variable]
> 1252 | Oid indexOid = RelationGetRelid(index);
> | ^~~~~~~~
> cluster.c: In function ‘copy_table_data’:
> cluster.c:780:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
> 780 | if (RELATION_IS_GLOBAL_TEMP(OldHeap));
> | ^~
> cluster.c:781:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
> 781 | is_gtt = true;
> | ^~~~~~
>
Part of the problem is that some variables are only used by assert statements, and I fixed those alarms.
Please provide your configue parameter, and I will verify it again.
Wenjing
Attachment | Content-Type | Size |
---|---|---|
global_temporary_table_v25-pg13.patch | application/octet-stream | 201.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Julien Rouhaud | 2020-04-09 13:31:31 | Re: Planning counters in pg_stat_statements (using pgss_store) |
Previous Message | Ranier Vilela | 2020-04-09 13:19:29 | Re: PG compilation error with Visual Studio 2015/2017/2019 |