Use the enum value CRS_EXPORT_SNAPSHOT instead of "0"

From: "Wei Wang (Fujitsu)" <wangw(dot)fnst(at)fujitsu(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Use the enum value CRS_EXPORT_SNAPSHOT instead of "0"
Date: 2023-06-16 06:10:10
Message-ID: OS3PR01MB6275DB83AF4658743B532B1D9E58A@OS3PR01MB6275.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In the function WalReceiverMain, when the function walrcv_create_slot is called,
the fourth parameter is assigned the value "0" instead of the enum value
"CRS_EXPORT_SNAPSHOT". I think it would be better to use the corresponding enum
value.

Attach the patch to change this point.

Regards,
Wang wei

Attachment Content-Type Size
0001-Use-the-enum-value-CRS_EXPORT_SNAPSHOT-instead-of-0.patch application/octet-stream 925 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2023-06-16 06:45:17 Re: Use the enum value CRS_EXPORT_SNAPSHOT instead of "0"
Previous Message Nathan Bossart 2023-06-16 05:20:25 Re: allow granting CLUSTER, REFRESH MATERIALIZED VIEW, and REINDEX