| From: | Wenjing Zeng <wjzeng2012(at)gmail(dot)com> |
|---|---|
| To: | Andres Freund <andres(at)anarazel(dot)de> |
| Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, wenjing <wenjing(at)gmail(dot)com>, Andrew Bille <andrewbille(at)gmail(dot)com>, Tony Zhu <Tony(dot)zhu(at)ww-it(dot)cn>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: [Proposal] Global temporary tables |
| Date: | 2022-03-02 02:52:54 |
| Message-ID: | 3A8BA4EF-A42B-492D-9F03-2F086F902838@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> 2022年2月27日 12:13,Andres Freund <andres(at)anarazel(dot)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
>
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Smith | 2022-03-02 02:54:31 | Re: Add the replication origin name and commit-LSN to logical replication worker errcontext |
| Previous Message | Andy Fan | 2022-03-02 02:43:15 | Re: Condition pushdown: why (=) is pushed down into join, but BETWEEN or >= is not? |