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

From tushar
Subject Re: [Proposal] Global temporary tables
Date
Msg-id e323cdb1-ef3a-633e-7bd7-555cf20c3603@enterprisedb.com
Whole thread Raw
In response to Re: [Proposal] Global temporary tables  ("曾文旌(义从)" <wenjing.zwj@alibaba-inc.com>)
Responses Re: [Proposal] Global temporary tables  ("曾文旌(义从)" <wenjing.zwj@alibaba-inc.com>)
List pgsql-hackers
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 regular table

--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
postgres=#

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




pgsql-hackers by date:

Previous
From: James Coleman
Date:
Subject: Re: pg_rewind docs correction
Next
From: tushar
Date:
Subject: Re: [Proposal] Global temporary tables