Skip to content

Commit 348c507

Browse files
committed
remove useless rel check
1 parent 95016ee commit 348c507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/copy_stmt_hooking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ PathmanDoCopy(const CopyStmt *stmt, const char *queryString, uint64 *processed)
301301
if (!rel) elog(FATAL, "No relation for PATHMAN COPY FROM");
302302

303303
/* check read-only transaction and parallel mode */
304-
if (XactReadOnly && rel && !rel->rd_islocaltemp)
304+
if (XactReadOnly && !rel->rd_islocaltemp)
305305
PreventCommandIfReadOnly("PATHMAN COPY FROM");
306306
PreventCommandIfParallelMode("PATHMAN COPY FROM");
307307

0 commit comments

Comments
 (0)