Re: [PATCH] Remove make_temptable_name_n()

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: [PATCH] Remove make_temptable_name_n()
Дата
Msg-id CAJ7c6TOoC4sJYmLeWAm0Wo=-dY656FErCcjajVKPdXsk2-ExCA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Remove make_temptable_name_n()  (Shinya Kato <shinya11.kato@gmail.com>)
Ответы Re: [PATCH] Remove make_temptable_name_n()
Список 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

Вложения

В списке pgsql-hackers по дате отправления: