Re: [HACKERS] Passing query string to workers

Поиск
Список
Период
Сортировка
Искать
От
Kuntal Ghosh
Тема
Re: [HACKERS] Passing query string to workers
Дата
Msg-id
CAGz5QCJtL497O4Ls+6BEWGVhRU4BRZw--MYpB3+=RoiLkFJu+w@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Passing query string to workers Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Passing query string to workers Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Passing query string to workers Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Passing query string to workers Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Passing query string to workers Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: [HACKERS] Passing query string to workers Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: [HACKERS] Passing query string to workers Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
Re: [HACKERS] Passing query string to workers Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] Passing query string to workers Rafia Sabih <rafia.sabih@enterprisedb.com>
On Tue, Feb 7, 2017 at 10:19 AM, Rafia Sabih
 wrote:
> Thanks a lot Kuntal for the review, please find attached patch for the
> revised version.
Few comments on the patch:

There are some spacing issues in the code. For example,
+       estate->es_queryString = (char
*)palloc0(strlen(queryDesc->sourceText) + 1);
+       /*Estimate space for query text. */
pgindent might be helpful to track all such changes.

+#define PARALLEL_KEY_QUERY_TEXT UINT64CONST(0xE000000000000010)
I'm uncomfortable with declaring the same macro in two
files(parallel.c, execParallel.c). My suggestion would be to move
pgstat_report_activity in ParallelQueryMain instead of
ParallelWorkerMain. Then, you can remove the macro definition from
parallel.c. Thoughts?

And, the value of the macro seems pretty random to me. IMO, it should
be UINT64CONST(0xE000000000000007).

-- 
Thanks & Regards,
Kuntal Ghosh
EnterpriseDB: http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления
От: Simon Riggs
Дата:
От: Simon Riggs
Дата:
FAQ