From: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Make relfile tombstone files conditional on WAL level |
Date: | 2022-02-21 07:51:31 |
Message-ID: | CAFiTN-tfRGVSzzEocegOm4s7bbaT6VKmO8WrAfTdH_M6wjR-Bw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Jan 6, 2022 at 1:43 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:
2) GetNewRelFileNode() will not loop for checking the file existence
> and retry with other relfilenode.
While working on this I realized that even if we make the relfilenode
56 bits we can not remove the loop inside GetNewRelFileNode() for
checking the file existence. Because it is always possible that the
file reaches to the disk even before the WAL for advancing the next
relfilenode and if the system crashes in between that then we might
generate the duplicate relfilenode right?
I think the second paragraph in XLogPutNextOid() function explain this
issue and now even after we get the wider relfilenode we will have
this issue. Correct?
I am also attaching the latest set of patches for reference, these
patches fix the review comments given by Robert about moving the
dbOid, tbsOid and RelNode directly into the buffer tag.
Open Issues- there are currently 2 open issues in the patch 1) Issue
as discussed above about removing the loop, so currently in this patch
the loop is removed. 2) During upgrade from the previous version we
need to advance the nextrelfilenode to the current relfilenode we are
setting for the object in order to avoid the conflict.
--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com
Attachment | Content-Type | Size |
---|---|---|
v4-0001-Preliminary-refactoring-for-supporting-larger-rel.patch | text/x-patch | 19.1 KB |
v4-0003-Don-t-delay-removing-Tombstone-file-until-next-ch.patch | text/x-patch | 8.2 KB |
v4-0002-Use-56-bits-for-relfilenode-to-avoid-wraparound.patch | text/x-patch | 91.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2022-02-21 08:04:51 | Re: Assert in pageinspect with NULL pages |
Previous Message | Andres Freund | 2022-02-21 07:48:06 | Re: Design of pg_stat_subscription_workers vs pgstats |