Re: [HACKERS] Parallel worker error
От
Amit Kapila
Тема
Re: [HACKERS] Parallel worker error
Дата
Msg-id
CAA4eK1LC0tE4_5Ro7NkAgDsAN8xUP-2LQLP_7PrqkHoB4RmBow@mail.gmail.com
Ответ на
Re: [HACKERS] Parallel worker error (Amit Kapila)
Список
Дерево обсуждения
[HACKERS] Parallel worker error Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] Parallel worker error Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Parallel worker error Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Parallel worker error Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Noah Misch <noah@leadboat.com>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Parallel worker error Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] Parallel worker error Pavan Deolasee <pavan.deolasee@gmail.com>
On Sat, Sep 9, 2017 at 7:56 AM, Amit Kapila wrote: > On Fri, Sep 8, 2017 at 3:13 PM, Robert Haas wrote: >> On Fri, Sep 8, 2017 at 1:17 AM, Amit Kapila wrote: >>> You are right. I have changed the ordering and passed OuterUserId via >>> FixedParallelState. >> >> This looks a little strange: >> >> + SetCurrentRoleId(fps->outer_user_id, fps->is_current_user_superuser); >> >> The first argument says "outer" but the second says "current". I'm >> wondering if we can just make the second one is_superuser. >> > > No issues changed as per suggestion. > >> I'm also wondering if, rather than using GetConfigOptionByName, we >> should just make the GUC underlying is_superuser non-static and use >> the value directly. If not, then I'm alternatively wondering whether >> we should maybe use a less-generic name than varval. >> > > I think we can go either way. So prepared patches with both > approaches. In fix_role_handling_parallel_worker_v3_1.patch, I have > changed the variable name and in > fix_role_handling_parallel_worker_v3_2.patch, I have exposed the guc) > is_superuser. > This patch no longer applies, so attached rebased patches. I have also created patches for v10 as we might want to backpatch the fix. Added the patch in CF (https://commitfest.postgresql.org/15/1342/) -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления