don't write csv file or do pg_copy if table returned by extractor has no
rows