From: Ashutosh B. <ash...@en...> - 2013-04-10 10:30:35
|
Hi Amit, In function pgxc_dml_add_qual_to_query(), INT4OID is used as default data-type of system column. Although it serves the purpose for now, if one wants to use this function for some other purpose, INT4OID would not suffice. Either please update the prologue of function to mention that system columns of INT4 type or accept type of system column as parameter. Also, the name of the function doesn't reflect the restricted purpose the function serves. It is too generic. In this commit, I see following comment, 191 + * Beware, the ordering of ctid and node_id is important ! ctid should 192 + * be followed by node_id, not vice-versa, so as to be consistent with 193 + * the data row to be generated while binding the parameters for the 194 + * update statement. Is there a way, throught code, to link the parameters added to query and those bound at the time of execution? If it's not possible right now, can we log a bug/feature and get to it later? Otherwise the patch looks good. -- Best Wishes, Ashutosh Bapat EntepriseDB Corporation The Enterprise Postgres Company |