compute a hash, and get stderr from postgres
parse all placeholders