1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

In pg_upgrade, use the new postmaster -C option to get the real data

directory, for config-only directory installs.  Only works for PG 9.2+
servers.
This commit is contained in:
Bruce Momjian
2011-10-07 14:40:23 -04:00
parent a3996754cc
commit caa1054df8
4 changed files with 70 additions and 5 deletions

View File

@ -187,6 +187,7 @@ typedef struct
ControlData controldata; /* pg_control information */
DbInfoArr dbarr; /* dbinfos array */
char *pgdata; /* pathname for cluster's $PGDATA directory */
char *pgconfig; /* pathname for cluster's config file directory */
char *bindir; /* pathname for cluster's executable directory */
unsigned short port; /* port number where postmaster is waiting */
uint32 major_version; /* PG_VERSION of cluster */
@ -361,6 +362,7 @@ void print_maps(FileNameMap *maps, int n,
/* option.c */
void parseCommandLine(int argc, char *argv[]);
void adjust_data_dir(ClusterInfo *cluster);
/* relfilenode.c */