From: [EMAIL PROTECTED] (Pavel Janík ml.) Date: Wed, 19 Jul 2000 11:11:05 +0200 Hi, > this patch applied, just untar the newest snapshot to src/bin/pg_dump > and you can continue with normal installation: configure && make && > make install. hmm. PG_VERSION is defined as 0 in version.h: #define PG_VERSION "0" but in CVS version the variable is defined in config.h: #define PG_VERSION "7.1devel" So if you compile the new pg_dump as I wrote above, you must use --ignore-version: SnowWhite:/home/pavel$ pg_dump db Database version: Archiver(db) PostgreSQL 7.0.2 on i486-pc-linux-gnu, compiled by gcc 2.7.2.3 version: 0 Aborting because of version mismatch. Use --ignore-version if you think it's safe to proceed anyway. SnowWhite:/home/pavel$ I think this is the correct (and smallest :-) patch:
diff -u pg_dump_141.orig/pg_backup_db.c pg_dump_141/pg_backup_db.c --- pg_dump_141.orig/pg_backup_db.c Sun Jul 16 12:30:08 2000 +++ pg_dump_141/pg_backup_db.c Wed Jul 19 12:43:09 2000 @@ -101,7 +101,7 @@ double remoteversion; PGconn *conn = AH->connection; - myversion = strtod(PG_VERSION, NULL); + myversion = strtod(PG_VERSION_STR + 11, NULL); res = PQexec(conn, "SELECT version()"); if (!res || PQresultStatus(res) != PGRES_TUPLES_OK ||
-- Pavel Janík ml. [EMAIL PROTECTED]