File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -10490,7 +10490,6 @@ dumpRelationStats(Archive *fout, const RelStatsInfo *rsinfo)
10490
10490
PGresult *res;
10491
10491
PQExpBuffer query;
10492
10492
PQExpBuffer out;
10493
- PQExpBuffer tag;
10494
10493
DumpId *deps = NULL;
10495
10494
int ndeps = 0;
10496
10495
char *qualified_name;
@@ -10522,9 +10521,6 @@ dumpRelationStats(Archive *fout, const RelStatsInfo *rsinfo)
10522
10521
ndeps = dobj->nDeps;
10523
10522
}
10524
10523
10525
- tag = createPQExpBuffer();
10526
- appendPQExpBufferStr(tag, fmtId(dobj->name));
10527
-
10528
10524
query = createPQExpBuffer();
10529
10525
if (!fout->is_prepared[PREPQUERY_GETATTRIBUTESTATS])
10530
10526
{
@@ -10695,7 +10691,7 @@ dumpRelationStats(Archive *fout, const RelStatsInfo *rsinfo)
10695
10691
PQclear(res);
10696
10692
10697
10693
ArchiveEntry(fout, nilCatalogId, createDumpId(),
10698
- ARCHIVE_OPTS(.tag = tag->data ,
10694
+ ARCHIVE_OPTS(.tag = dobj->name ,
10699
10695
.namespace = dobj->namespace->dobj.name,
10700
10696
.description = "STATISTICS DATA",
10701
10697
.section = rsinfo->postponed_def ?
@@ -10707,7 +10703,6 @@ dumpRelationStats(Archive *fout, const RelStatsInfo *rsinfo)
10707
10703
free(qualified_name);
10708
10704
destroyPQExpBuffer(out);
10709
10705
destroyPQExpBuffer(query);
10710
- destroyPQExpBuffer(tag);
10711
10706
}
10712
10707
10713
10708
/*
You can’t perform that action at this time.
0 commit comments