| From: | Aleksander Alekseev <aleksander(at)tigerdata(dot)com> |
|---|---|
| To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | "Koshi Shibagaki (Fujitsu)" <shibagaki(dot)koshi(at)fujitsu(dot)com> |
| Subject: | Re: [PATCH] Support casts from numeric to oid8 |
| Date: | 2026-11-23 11:54:23 |
| Message-ID: | CAJ7c6TPw+0HmRbGXKHrbQoOVkxO4FJAEjAN399_Rk0SnzVrytw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Borisov | 2026-11-23 12:04:14 | CASCADE drops deadlock with concurrent queries or autovacuum of a dependent index |
| Previous Message | Bertrand Drouvot | 2026-11-23 11:43:56 | Re: [PATCH] TRUNCATE's reset of n_live_tup/n_dead_tup is lost |