Re: [PATCH] Add pg_get_role_ddl() functions for role recreation

Поиск
Список
Период
Сортировка
От Mario González Troncoso
Тема Re: [PATCH] Add pg_get_role_ddl() functions for role recreation
Дата
Msg-id CAFsReFVAznkE-1S1QBnRuXKM4MR4ONSRbt-A05Q1E7-xSazdBA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add pg_get_role_ddl() functions for role recreation  (Japin Li <japinli@hotmail.com>)
Список pgsql-hackers
On Wed, 7 Jan 2026 at 22:40, Japin Li <japinli@hotmail.com> wrote:
>
> >
> > Is that what you mean by "remove the variable and hard-code"?
> >
> > @@ -578,7 +578,6 @@ pg_get_role_ddl_internal(Oid roleid)
> > - const char *separator = " ";
> >
> > tuple = SearchSysCache1(AUTHOID, ObjectIdGetDatum(roleid));
> > if (!HeapTupleIsValid(tuple))
> > @@ -605,34 +604,34 @@ pg_get_role_ddl_internal(Oid roleid)
> > * you'd typically write them in a CREATE ROLE command, though any order
> > * is actually acceptable to the parser.
> > */
> >
> >
> > - appendStringInfo(&buf, "%s%s", separator,
> > -                                roleform->rolcanlogin ? "LOGIN" : "NOLOGIN");
> > -
> > - appendStringInfo(&buf, "%s%s", separator,
> > + appendStringInfo(&buf, " %s",
> >
> > The lines above are a snippet of the latest commit `WIP: removing
> > "separator"` on   https://cirrus-ci.com/build/4621719253549056
> > Would you be able to see the whole change over there? If that's what
> > you mean, I'll squash afterwards and attach a new patch version to
> > this thread.
> >
>
> Yeah, you read my mind.

Cool. I rebased this morning and it passed just fine.

>

> --
> Regards,
> Japin Li
> ChengDu WenWu Information Technology Co., Ltd.



-- 
Mario Gonzalez
EDB: https://www.enterprisedb.com

Вложения

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