diff options
| author | Bruce Momjian <bruce@momjian.us> | 2013-06-28 19:11:51 -0400 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2013-06-28 19:11:51 -0400 |
| commit | f85136106d87f54e87635736dfe1b8227b6803ad (patch) | |
| tree | 2b55d2949080b0c1a9d15d2be0054315e6d59b2a /contrib/pg_upgrade/option.c | |
| parent | e029275cdeb39cd2178ac23e2fcc65520f7b7b9c (diff) | |
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
Diffstat (limited to 'contrib/pg_upgrade/option.c')
| -rw-r--r-- | contrib/pg_upgrade/option.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/pg_upgrade/option.c b/contrib/pg_upgrade/option.c index dee58ee28fc..2774b1e2114 100644 --- a/contrib/pg_upgrade/option.c +++ b/contrib/pg_upgrade/option.c @@ -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 |
