Fix issue for "grant all on all tables in schema xxx to yyy;"
It has been discovered in GPDB v.6 and above that a 'GRAND ALL ON ALL TABLES IN SCHEMA XXX TO YYY;' statement will lead to PANIC. From the resulted coredumps, a now obsolete code in QD that tried to encode objects in a partition reference into RangeVars was identified as the culprit. The list that the resulting vars were ancored, was expecting and treating only StrVars. The original code was added following the premise that catalog informations were not available in Segments. Also it tried to optimise caching, yet the code was not fully writen. Instead, the offending block is removed which solves the issue and allows for greater alignment with upstream. Reviewed-by: NGeorgios Kokolatos <gkokolatos@pivotal.io> (cherry picked from commit ba6148c6)
Showing
想要评论请 注册 或 登录