mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Turn the -i/--ignore-version options of pg_dump and pg_dumpall into no-ops:
the server version check is now always enforced. Relax the version check to allow a server that is of pg_dump's own major version but a later minor version; this is the only case that -i was at all safe to use in. pg_restore already enforced only a very weak version check, so this is really just a documentation change for it. Per discussion.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.46 2008/03/20 17:36:57 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.47 2008/04/13 03:49:21 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -116,7 +116,6 @@ typedef struct _restoreOptions
|
||||
char *pgport;
|
||||
char *pghost;
|
||||
char *username;
|
||||
int ignoreVersion;
|
||||
int noDataForFailedTables;
|
||||
int requirePassword;
|
||||
int exit_on_error;
|
||||
@ -144,9 +143,7 @@ PGconn *ConnectDatabase(Archive *AH,
|
||||
const char *pghost,
|
||||
const char *pgport,
|
||||
const char *username,
|
||||
const int reqPwd,
|
||||
const int ignoreVersion);
|
||||
|
||||
int reqPwd);
|
||||
|
||||
/* Called to add a TOC entry */
|
||||
extern void ArchiveEntry(Archive *AHX,
|
||||
|
Reference in New Issue
Block a user