Skip to content

Commit fb84c7a

Browse files
committed
WIP
1 parent f750095 commit fb84c7a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/bin/pg_dump/pg_backup_db.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ _check_database_version(ArchiveHandle *AH)
4646
if (remoteversion == 0 || !remoteversion_str)
4747
exit_horribly(modulename, "could not get server_version from libpq\n");
4848

49+
/* TODO select pgpro_version, pgpro_edition */
50+
4951
AH->public.remoteVersionStr = pg_strdup(remoteversion_str);
5052
AH->public.remoteVersion = remoteversion;
5153
if (!AH->archiveRemoteVersion)

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6280,6 +6280,7 @@ getIndexes(Archive *fout, TableInfo tblinfo[], int numTables)
62806280
* is not.
62816281
*/
62826282
resetPQExpBuffer(query);
6283+
/* TODO check pgpro_version instead of just remoteVersion */
62836284
if (fout->remoteVersion >= 90600)
62846285
{
62856286
/*

src/include/catalog/catversion.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@
5050
* YYYYMMDD are the date of the change, and N is the number of the change
5151
* on that day. (Hopefully we'll never commit ten independent sets of
5252
* catalog changes on the same day...)
53+
* For PGPRO we added also P - the number of the PGPRO specific catalog change.
5354
*/
5455

55-
/* yyyymmddN */
56-
#define CATALOG_VERSION_NO 201608131
56+
/* yyyymmddNP */
57+
#define CATALOG_VERSION_NO 2016081311
5758

5859
#endif

0 commit comments

Comments
 (0)