Re: [Proposal] Global temporary tables

Wenjing Zeng <wjzeng2012@gmail.com>

From: wenjing <wjzeng2012@gmail.com>
To: Ming Li <mli@apache.org>
Cc: wenjing@gmail.com, Dilip Kumar <dilipbalaut@gmail.com>, shawn wang <shawn.wang.pg@gmail.com>, Pavel Stehule <pavel.stehule@gmail.com>, Andrew Dunstan <andrew@dunslane.net>, 曾文旌 <wenjing.zwj@alibaba-inc.com>, Robert Haas <robertmhaas@gmail.com>, Prabhat Sahu <prabhat.sahu@enterprisedb.com>, tushar <tushar.ahuja@enterprisedb.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2021-07-22T09:40:49Z
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 →
  1. PageAddItemExtended(): Add LP_UNUSED assertion.

  2. Remove temporary files after backend crash

  3. Fix comment in indexing.c

  4. Fix failure to ignore leftover temp tables after a server crash.

Attachments

Ming Li <mli@apache.org> 于2021年7月14日周三 上午10:56写道:

> Hi Wenjing,
>
> Some suggestions may help:
>
> 1) It seems that no test case covers the below scenario: 2 sessions attach
> the same gtt, and insert/update/select concurrently. It is better to use
> the test framework in src/test/isolation like the code changes in
> https://commitfest.postgresql.org/24/2233/.
>

Thanks for pointing this out, I am working on this issue.


>
> 2) CREATE GLOBAL TEMP SEQUENCE also need to be supported
> in src/bin/psql/tab-complete.c
>
It has been fixed in V51, please check

Regards,
wenjing

>
>
> On Wed, Jul 14, 2021 at 10:36 AM wenjing <wjzeng2012@gmail.com> wrote:
>
>> Rebase code based on the latest version.
>>
>> Regards,
>> wenjing
>>
>>