diff --git a/src/backend/distributed/worker/task_tracker_protocol.c b/src/backend/distributed/worker/task_tracker_protocol.c index d1972b229..9a8d452d6 100644 --- a/src/backend/distributed/worker/task_tracker_protocol.c +++ b/src/backend/distributed/worker/task_tracker_protocol.c @@ -291,13 +291,14 @@ CreateJobSchema(StringInfo schemaName) createSchemaStmt = makeNode(CreateSchemaStmt); createSchemaStmt->schemaname = schemaName->data; - createSchemaStmt->authrole = (Node *) ¤tUserRole; createSchemaStmt->schemaElts = NIL; /* actually create schema with the current user as owner */ #if (PG_VERSION_NUM >= 100000) + createSchemaStmt->authrole = ¤tUserRole; CreateSchemaCommand(createSchemaStmt, queryString, -1, -1); #else + createSchemaStmt->authrole = (Node *) ¤tUserRole; CreateSchemaCommand(createSchemaStmt, queryString); #endif