Is there a way to specify the data types of the columns in a values subquery? Something like (values (...)) as tmp_name (colname::type)?
values
(values (...)) as tmp_name (colname::type)
You can cast once on the join predicate:
select foo.id from foo inner join (values ('aaaabbbbccccffffddeeeeffff00001111'), ('aaaabbbbccccffffddeeeeffff00000000')) as tmp (id) on foo.id = tmp.id::uuid;