We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec54f0 commit 39cc3b4Copy full SHA for 39cc3b4
bin/pg_repack.c
@@ -1256,12 +1256,8 @@ repack_one_table(repack_table *table, const char *orderby)
1256
params[0] = buffer; /* backend PID of conn2 */
1257
params[1] = PROGRAM_NAME;
1258
res = execute(SQL_XID_SNAPSHOT, 2, params);
1259
- if (!(vxid = strdup(PQgetvalue(res, 0, 0))))
1260
- {
1261
- elog(WARNING, "Unable to allocate vxid, length: %d\n",
1262
- PQgetlength(res, 0, 0));
1263
- goto cleanup;
1264
- }
+ vxid = pgut_strdup(PQgetvalue(res, 0, 0));
+
1265
CLEARPGRES(res);
1266
1267
/* Delete any existing entries in the log table now, since we have not
0 commit comments