1
0
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:
Bruce Momjian
2013-06-28 19:11:51 -04:00
parent e029275cde
commit f85136106d
3 changed files with 20 additions and 4 deletions

View File

@ -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