Re: [HACKERS] Passing query string to workers - Mailing list pgsql-hackers

From Rafia Sabih
Subject Re: [HACKERS] Passing query string to workers
Date
Msg-id CAOGQiiMUbGEqgmD7VmP_xL+TmWN7R3jSYRBeH_=UVWbwYXoRNQ@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Passing query string to workers  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Responses Re: [HACKERS] Passing query string to workers  (Robert Haas <robertmhaas@gmail.com>)
List 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
Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] delta relations in AFTER triggers
Next
From: Amit Langote
Date:
Subject: Re: [HACKERS] Documentation improvements for partitioning