Fix crashes in Greenplum tracking view creation