Hi Koshi,
> Attached is a patch adding an assignment cast.
The patch looks correct but its value is debatable.
> Is it intentional that this cast fails, even though the value fits in
> oid8?
My best guess is that no one actually needed this cast before. Could
you please describe your case in more detail?
As an observation we don't support this for xid8 either:
```
=# SELECT 18446744073709551615::xid8;
ERROR: cannot cast type numeric to xid8
```
--
Best regards,
Aleksander Alekseev