aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2011-04-27 20:39:20 +0200
committerMagnus Hagander <magnus@hagander.net>2011-04-27 20:39:20 +0200
commit6693eb72c014e5e8bc2f7f3221ebd5507fdbe8ec (patch)
tree8cb24f63ff5c50d5fb144a32f905f82dfad94804
parent4f6c75b541385eb2d48f7ef62c1c323ec2642134 (diff)
downloadpostgresql-6693eb72c014e5e8bc2f7f3221ebd5507fdbe8ec.tar.gz
postgresql-6693eb72c014e5e8bc2f7f3221ebd5507fdbe8ec.zip
timeline is not needed in BaseBackup()
This code was accidentally part of the patch, it's only needed for the code that's for 9.2. Not needing the timeline also removes the need to call IDENTIFY_SYSTEM. Noted by Peter E.
-rw-r--r--src/bin/pg_basebackup/pg_basebackup.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index aeec8136c4a..a5d9c2e6520 100644
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -756,7 +756,6 @@ static void
BaseBackup(void)
{
PGresult *res;
- uint32 timeline;
char current_path[MAXPGPATH];
char escaped_label[MAXPGPATH];
int i;
@@ -769,25 +768,6 @@ BaseBackup(void)
conn = GetConnection();
/*
- * Run IDENFITY_SYSTEM so we can get the timeline
- */
- res = PQexec(conn, "IDENTIFY_SYSTEM");
- if (PQresultStatus(res) != PGRES_TUPLES_OK)
- {
- fprintf(stderr, _("%s: could not identify system: %s\n"),
- progname, PQerrorMessage(conn));
- disconnect_and_exit(1);
- }
- if (PQntuples(res) != 1)
- {
- fprintf(stderr, _("%s: could not identify system, got %i rows\n"),
- progname, PQntuples(res));
- disconnect_and_exit(1);
- }
- timeline = atoi(PQgetvalue(res, 0, 1));
- PQclear(res);
-
- /*
* Start the actual backup
*/
PQescapeStringConn(conn, escaped_label, label, sizeof(escaped_label), &i);