uint64 ResourceQueueGetQueryMemoryLimit(PlannedStmt *stmt, Oid queueId)