int64 ResourceManagerGetQueryMemoryLimit(PlannedStmt* stmt);