Re: [HACKERS] Passing query string to workers

Поиск
Список
Период
Сортировка
От Rafia Sabih
Тема Re: [HACKERS] Passing query string to workers
Дата
Msg-id CAOGQiiMUbGEqgmD7VmP_xL+TmWN7R3jSYRBeH_=UVWbwYXoRNQ@mail.gmail.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>)
Список pgsql-hackers


On Mon, Feb 20, 2017 at 8:35 PM, Kuntal Ghosh <kuntalghosh.2007@gmail.com> wrote:
+   char       *query_data;
+   query_data = estate->es_sourceText;
estate->es_sourceText is a const char* variable. Assigning this const
pointer to a non-const pointer violates the rules
constant-correctness. So, either you should change query_data as const
char*, or as Robert suggested, you can directly use
estate->es_sourceText.
Done. 

--
Regards,
Rafia Sabih
Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] delta relations in AFTER triggers
Следующее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] Documentation improvements for partitioning