mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
pg_upgrade: pass username to analyze script
If -U (user) is specified, pass the username into the created analyze script. Per request from Ray Stell
This commit is contained in:
@ -172,6 +172,7 @@ parseCommandLine(int argc, char *argv[])
|
||||
case 'U':
|
||||
pg_free(os_info.user);
|
||||
os_info.user = pg_strdup(optarg);
|
||||
os_info.user_specified = true;
|
||||
|
||||
/*
|
||||
* Push the user name into the environment so pre-9.1
|
||||
|
Reference in New Issue
Block a user