Re: pg_dump does not dump domain not-null constraint's comments

Поиск
Список
Период
Сортировка
От jian he
Тема Re: pg_dump does not dump domain not-null constraint's comments
Дата
Msg-id CACJufxHEX9nboSZSz_Qw1_Kwvnvdfieqn_rCRHcwEqyGEEzNAA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_dump does not dump domain not-null constraint's comments  (Álvaro Herrera <alvherre@kurilemu.de>)
Ответы Re: pg_dump does not dump domain not-null constraint's comments
Список pgsql-hackers
On Fri, Jul 18, 2025 at 5:11 AM Álvaro Herrera <alvherre@kurilemu.de> wrote:
>
> Anyway, here's a patch.
>
one minor issue in getDomainConstraints:

 for (int i = 0, j = 0; i < ntups; i++)
{
        char        contype = (PQgetvalue(res, i, i_contype))[0];
        ....
        constraint->contype = *(PQgetvalue(res, i, i_contype));
}

for the same code simplicity,
``constraint->contype = *(PQgetvalue(res, i, i_contype));``
can change to
`` constraint->contype = contype;  ``
?
other than that, looks good to me.



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