Re: [PATCH] Support casts from numeric to oid8

From: "Koshi Shibagaki (Fujitsu)" <shibagaki(dot)koshi(at)fujitsu(dot)com>
To: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Support casts from numeric to oid8
Date: 2026-11-25 08:11:16
Message-ID: TY5PR01MB184455DD78AC7D8877693CE56FA432@TY5PR01MB18445.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Aleksander,

> Could you please describe your case in more detail?

I noticed this when I was adding oid8 support to rust-postgres [1].
I don't have a concrete use case at the moment.

I thought it was inconsistent that 9223372036854775807::oid8 works, but
9223372036854775808::oid8 fails. Both values are within the range of oid8,
so I expected both casts to work. That's why I sent the patch.

[1] https://github.com/rust-postgres/rust-postgres/pull/1392

Koshi Shibagaki
FUJITSU LIMITED
https://www.fujitsu.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ajin Cherian 2026-11-25 08:14:13 Re: BUG? Unpublished generated columns are reported "missing" by the subscription
Previous Message Chao Li 2026-11-25 08:09:01 Re: [PATCH] psql: Complete GRANTED BY in GRANT and REVOKE