Re: [HACKERS] Passing query string to workers
От | Kuntal Ghosh |
---|---|
Тема | Re: [HACKERS] Passing query string to workers |
Дата | |
Msg-id | CAGz5QCK9K1jk8uWEpT8BLUhp8WpNhHzeUfNWq25qwqUVMf7q=A@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] Passing query string to workers (Rafia Sabih <rafia.sabih@enterprisedb.com>) |
Ответы |
Re: [HACKERS] Passing query string to workers
|
Список | pgsql-hackers |
On Sat, Feb 11, 2017 at 8:38 AM, Rafia Sabih <rafia.sabih@enterprisedb.com> wrote: > >> >> Another question is don't we need to set debug_query_string in worker? > > In the updated version I am setting it in ParallelQueryMain. > Ahh, I missed that. debug_query_string is used to show the log statements. Hence, it should be set. > Please find the attached file for the revised version. > + queryString = shm_toc_lookup(toc, PARALLEL_KEY_QUERY_TEXT); + debug_query_string = shm_toc_lookup(toc, PARALLEL_KEY_QUERY_TEXT); + pgstat_report_activity(STATE_RUNNING, shm_toc_lookup(toc, PARALLEL_KEY_QUERY_TEXT)); Just one lookup is sufficient. -- Thanks & Regards, Kuntal Ghosh EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: