RE: [bug fix] ALTER TABLE SET LOGGED/UNLOGGED on a partitioned table does nothing silently - Mailing list pgsql-hackers

From tsunakawa.takay@fujitsu.com
Subject RE: [bug fix] ALTER TABLE SET LOGGED/UNLOGGED on a partitioned table does nothing silently
Date
Msg-id TYAPR01MB2990A940BACA05FA8BD4992BFECD0@TYAPR01MB2990.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: [bug fix] ALTER TABLE SET LOGGED/UNLOGGED on a partitioned table does nothing silently  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
List pgsql-hackers
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
> Do you mean to say that if we detach all the partitions(assuming they
> are all unlogged) then the parent table(assuming logged) gets changed
> to unlogged? Does it happen on master? Am I missing something here?

No, the parent remains logged in that case both on master and with patched.  I understand this behavior is based on the
ideathat (1) each storage unit (=partition) is independent, and (2) a partitioned table has no storage so the
logged/unloggedsetting has no meaning.  (I don't know there was actually such an idea and the feature was implemented
onthat idea, though.)
 


Regards
Takayuki Tsunakawa



pgsql-hackers by date:

Previous
From: Denis Smirnov
Date:
Subject: Re: PoC Refactor AM analyse API
Next
From: David Rowley
Date:
Subject: Re: Hybrid Hash/Nested Loop joins and caching results from subplans