The gpcheckcat utility fails with the back trace and error message below:
Performing test 'orphaned_toast_tables'
Traceback (most recent call last):
File "/usr/local/greenplum-db-7.3.0/bin/gpcheckcat", line 3776, in <module>
main()
File "/usr/local/greenplum-db-7.3.0/bin/gpcheckcat", line 3763, in main
runAllChecks(run_tests)
File "/usr/local/greenplum-db-7.3.0/bin/gpcheckcat", line 2419, in runAllChecks
runOneCheck(name)
File "/usr/local/greenplum-db-7.3.0/bin/gpcheckcat", line 2399, in runOneCheck
all_checks[name]["fn"]()
File "/usr/local/greenplum-db-7.3.0/bin/gpcheckcat", line 1955, in checkOrphanedToastTables
check_passed = checker.runCheck(conn)
File "/usr/local/greenplum-db-7.3.0/bin/gpcheckcat_modules/orphaned_toast_tables_check.py", line 123, in runCheck
curs.execute(self.orphaned_toast_tables_query)
File "/usr/lib64/python3.6/site-packages/psycopg2/extras.py", line 144, in execute
return super(DictCursor, self).execute(query, vars)
psycopg2.DataError: invalid input syntax for type bigint: "pg_toast_80205947" (seg0 slice9 XX.XX.XX.XX:6000 pid=1595831)
This issue was found in Greenplum DB 7.3.0.
The
Edit the file $GPHOME/bin/gpcheckcat_modules/orphaned_toast_tables_check.py with the follwoing steps
This is expected to be fixed in 7.4.0 and above.