Use more CppAsString2() in pg_amcheck.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Use more CppAsString2() in pg_amcheck.c
Date: 2024-10-18 09:50:50
Message-ID: ZxIvemDk0Ob1RGwh@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi all,

pg_amcheck.c is one of these places where relkind and relpersistence
values are hardcoded in queries based on the contents of pg_class_d.h.
Similarly to other places in src/bin/, let's sprinkle some
CppAsString2() and feed to the binary the values from the header. The
patch attached does that.

Thoughts or comments?
--
Michael

Attachment Content-Type Size
0001-Use-more-CppAsString2-in-pg_amcheck.c.patch text/x-diff 5.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2024-10-18 09:59:48 Re: Use more CppAsString2() in pg_amcheck.c
Previous Message Amit Kapila 2024-10-18 09:46:34 Re: Conflict detection for update_deleted in logical replication