We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74936d7 commit e766944Copy full SHA for e766944
src/backend/commands/copy.c
@@ -1420,20 +1420,17 @@ close_program_pipes(ProgramPipes *program_pipes, bool ifThrow)
1420
{
1421
int ret = 0;
1422
StringInfoData sinfo;
1423
- initStringInfo(&sinfo);
1424
1425
/* just return if pipes not created, like when relation does not exist */
1426
if (!program_pipes)
1427
- {
1428
return;
1429
- }
+
+ initStringInfo(&sinfo);
1430
1431
ret = pclose_with_stderr(program_pipes->pid, program_pipes->pipes, &sinfo);
1432
1433
if (ret == 0 || !ifThrow)
1434
1435
1436
1437
1438
if (ret == -1)
1439
0 commit comments