Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>
Cc: Maciek Sakrejda <m(dot)sakrejda(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [Proposal] Fully WAL logged CREATE DATABASE - No Checkpoints
Date: 2022-03-03 16:22:37
Message-ID: CAFiTN-sDrM6CnSAcNMbH9R0WLUAsCR1y+a3B6cUxVpn7qqtJ9A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 1, 2022 at 5:15 PM Dilip Kumar <dilipbalaut(at)gmail(dot)com> wrote:

> On Tue, Feb 22, 2022 at 8:27 PM Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>
> wrote:
>
>> I'm not sure about the current status, but found it while playing
>> around with the latest changes a bit, so thought of sharing it here.
>>
>> + <varlistentry>
>> + <term><replaceable class="parameter">strategy</replaceable></term>
>> + <listitem>
>> + <para>
>> + This is used for copying the database directory. Currently, we
>> have
>> + two strategies the <literal>WAL_LOG_BLOCK</literal> and the
>>
>> Isn't it wal_log instead of wal_log_block?
>>
>> I think when users input wrong strategy with createdb command, we
>> should provide a hint message showing allowed values for strategy
>> types along with an error message. This will be helpful for the users.
>>
>
> I will fix these two comments while posting the next version.
>
>

The new version of the patch fixes these 2 comments pointed by Ashutosh and
also splits the GetRelListFromPage() function as suggested by Robert and
uses the latest snapshot for scanning the pg_class instead of active
snapshot as pointed out by Robert. I haven't yet added the test case to
create a database using this new strategy option. So if we are okay with
these two options FILE_COPY and WAL_LOG then I will add test cases for the
same.

--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

Attachment Content-Type Size
v10-0002-Extend-relmap-interfaces.patch text/x-patch 8.5 KB
v10-0001-Refactor-relmap-load-and-relmap-write-functions.patch text/x-patch 8.3 KB
v10-0003-Refactor-index_copy_data.patch text/x-patch 5.3 KB
v10-0004-Extend-bufmgr-interfaces.patch text/x-patch 4.2 KB
v10-0005-New-interface-to-lock-relation-id.patch text/x-patch 2.2 KB
v10-0006-WAL-logged-CREATE-DATABASE.patch text/x-patch 35.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2022-03-03 16:22:38 Re: [Proposal] Global temporary tables
Previous Message Joshua Brindle 2022-03-03 16:12:17 Re: Proposal: Support custom authentication methods using hooks