This patch fixes many problems in the handling of GPDB CSV format logs for the frmStatus display.
It's also a useful start for supporting PostgreSQL 8.4 CSV format logs.