mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Fix pg_isolation_regress to work outside its build directory.
This makes it possible to, for example, use the isolation tester to test a contrib module. Andres Freund
This commit is contained in:
@@ -85,13 +85,16 @@ main(int argc, char **argv)
|
||||
PQExpBufferData wait_query;
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "n")) != -1)
|
||||
while ((opt = getopt(argc, argv, "nV")) != -1)
|
||||
{
|
||||
switch (opt)
|
||||
{
|
||||
case 'n':
|
||||
dry_run = true;
|
||||
break;
|
||||
case 'V':
|
||||
puts("isolationtester (PostgreSQL) " PG_VERSION);
|
||||
exit(0);
|
||||
default:
|
||||
fprintf(stderr, "Usage: isolationtester [-n] [CONNINFO]\n");
|
||||
return EXIT_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user