From: | Aleksander Alekseev <aleksander(at)tigerdata(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Cc: | Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, Nathan Bossart <nathandbossart(at)gmail(dot)com> |
Subject: | Re: [PATCH] Remove make_temptable_name_n() |
Date: | 2025-10-21 12:36:46 |
Message-ID: | CAJ7c6TOoC4sJYmLeWAm0Wo=-dY656FErCcjajVKPdXsk2-ExCA@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi Shinya,
Thanks for your feedback.
> The v1 revision removed make_temptable_name_n and added psprintf,
> which reduced the code size. However, the code size in v3 is almost
> unchanged, so it's unclear how beneficial this change actually is.
Right, the concept has changed a bit, see Álvaro's comment above.
> Anyway, I have a minor comment about the patch.
>
> + char* nsp = get_namespace_name(RelationGetNamespace(tempRel));
> + char* temprelname = RelationGetRelationName(tempRel);
> + char* diffrelname = psprintf("%s_%d", temprelname, 2);
>
> In PostgreSQL code, "char *xxx" seems to be more commonly used than "char* xxx".
My bad, I forgot to run pgindent. Here is the corrected patch.
--
Best regards,
Aleksander Alekseev
Attachment | Content-Type | Size |
---|---|---|
v4-0001-Remove-make_temptable_name_n.patch | text/x-patch | 3.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Nazir Bilal Yavuz | 2025-10-21 13:22:42 | Re: CI: Add task that runs pgindent |
Previous Message | Jelte Fennema-Nio | 2025-10-21 12:19:29 | CI: Add task that runs pgindent |