Re: [Proposal] Global temporary tables - Mailing list pgsql-hackers

From 曾文旌(义从)
Subject Re: [Proposal] Global temporary tables
Date
Msg-id 65CBE32D-379E-4EEE-9B73-F8AB55AF2E86@alibaba-inc.com
Whole thread Raw
In response to Re: [Proposal] Global temporary tables  (tushar <tushar.ahuja@enterprisedb.com>)
List pgsql-hackers

> 2020年3月9日 下午9:34,tushar <tushar.ahuja@enterprisedb.com> 写道:
>
> On 3/6/20 12:35 PM, 曾文旌(义从) wrote:
>> Fixed in global_temporary_table_v17-pg13.patch
>
> Thanks Wenjing.
>
> Please refer this scenario , where i am able to set 'on_commit_delete_rows=true'  on regular table using 'alter'
Syntax which is not allowed using 'Create' Syntax 
>
> --Expected -
>
> postgres=# CREATE TABLE foo () WITH (on_commit_delete_rows='true');
> ERROR:  The parameter on_commit_delete_rows is exclusive to the global temp table, which cannot be specified by a
regulartable 
>
> --But user can do this with 'alter' command -
> postgres=# create table foo();
> CREATE TABLE
> postgres=# alter table foo set (on_commit_delete_rows='true');
> ALTER TABLE
This is a bug ,I fixed.


Wenjing



> postgres=#
> 
> -- 
> regards,tushar
> EnterpriseDB  https://www.enterprisedb.com/
> The Enterprise PostgreSQL Company


Attachment

pgsql-hackers by date:

Previous
From: "曾文旌(义从)"
Date:
Subject: Re: [Proposal] Global temporary tables
Next
From: "曾文旌(义从)"
Date:
Subject: Re: [Proposal] Global temporary tables