Use palloc() instead of palloc0() in buildGpQueryString()
The buildGpQueryString() function should use palloc() instead of palloc0()
to allocate the buffer for holding the serialized query string, thus
avoiding the unnecessary cost of setting all bytes in buffer to zero.
@@ -910,7 +910,7 @@ buildGpQueryString(DispatchCommandQueryParms *pQueryParms,
sizeof(resgroupInfo.len) +
resgroupInfo.len;
- shared_query = palloc0(total_query_len);
+ shared_query = palloc(total_query_len);
pos = shared_query;
