clean up tar-related code in PostgreSQL

clean up tar-related code in PostgreSQL

Edit