Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6693eb7

Browse files
committed
timeline is not needed in BaseBackup()
This code was accidentally part of the patch, it's onlyneeded for the code that's for 9.2. Not needing the timelinealso removes the need to call IDENTIFY_SYSTEM.Noted by Peter E.
1 parent4f6c75b commit6693eb7

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

‎src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,6 @@ static void
756756
BaseBackup(void)
757757
{
758758
PGresult*res;
759-
uint32timeline;
760759
charcurrent_path[MAXPGPATH];
761760
charescaped_label[MAXPGPATH];
762761
inti;
@@ -768,25 +767,6 @@ BaseBackup(void)
768767
*/
769768
conn=GetConnection();
770769

771-
/*
772-
* Run IDENFITY_SYSTEM so we can get the timeline
773-
*/
774-
res=PQexec(conn,"IDENTIFY_SYSTEM");
775-
if (PQresultStatus(res)!=PGRES_TUPLES_OK)
776-
{
777-
fprintf(stderr,_("%s: could not identify system: %s\n"),
778-
progname,PQerrorMessage(conn));
779-
disconnect_and_exit(1);
780-
}
781-
if (PQntuples(res)!=1)
782-
{
783-
fprintf(stderr,_("%s: could not identify system, got %i rows\n"),
784-
progname,PQntuples(res));
785-
disconnect_and_exit(1);
786-
}
787-
timeline=atoi(PQgetvalue(res,0,1));
788-
PQclear(res);
789-
790770
/*
791771
* Start the actual backup
792772
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp