Re: Typo in pg_db_role_setting.h

From: Japin Li <japinli(at)hotmail(dot)com>
To: John Naylor <john(dot)naylor(at)enterprisedb(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Typo in pg_db_role_setting.h
Date: 2022-08-01 14:24:24
Message-ID: MEYP282MB16695AA4C0C5AB994F8FFD6FB69A9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Mon, 01 Aug 2022 at 20:46, John Naylor <john(dot)naylor(at)enterprisedb(dot)com> wrote:
> On Mon, Aug 1, 2022 at 4:18 PM Japin Li <japinli(at)hotmail(dot)com> wrote:
>>
>>
>> Hi, hackers
>>
>> I think there is a typo in pg_db_role_setting.h, should we fix it?
>>
>> diff --git a/src/include/catalog/pg_db_role_setting.h
> b/src/include/catalog/pg_db_role_setting.h
>> index 45d478e9e7..f92e867df4 100644
>> /*
>> - * prototypes for functions in pg_db_role_setting.h
>> + * prototypes for functions in pg_db_role_setting.c
>> */
>
> You are correct, but I wonder if it'd be better to just drop the comment
> entirely. I checked a couple other random headers with function
> declarations and they didn't have such a comment, and it's kind of obvious
> what they're for.

Both are fine for me. I find there are some headers also have such a comment,
like pg_enum, pg_range and pg_namespace.

--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-08-01 14:27:57 Re: Add test of pg_prewarm extenion
Previous Message David G. Johnston 2022-08-01 14:20:37 Re: Triggers should work in isolation, with a final conflict detection step