Re: Custom type's modifiers - Mailing list pgsql-hackers

From David G. Johnston
Subject Re: Custom type's modifiers
Date
Msg-id CAKFQuwZnhZPQgbL687qeT5sC3kjWJ4r9QQwqB1nU5xtLbOj=HQ@mail.gmail.com
Whole thread Raw
In response to Re: Custom type's modifiers  (Marthin Laubscher <postgres@lobeshare.co.za>)
Responses Re: Custom type's modifiers
List pgsql-hackers
On Thu, Jun 27, 2024 at 8:49 AM Marthin Laubscher <postgres@lobeshare.co.za> wrote:

I suppose when a cast is involved it goes via the external format as well, right?

A cast between two types is going to accept a concrete instance of the input type, in memory, as its argument and then produces a concrete instance of the output type, in memory, as output.  If the input data is serialized the constructor for the input type will handle deserialization.

See: create cast


In particular the phrasing: identical to or binary-coercible to

David J.
 

pgsql-hackers by date:

Previous
From: Marthin Laubscher
Date:
Subject: Re: Custom type's modifiers
Next
From: Tom Lane
Date:
Subject: Re: JIT causes core dump during error recovery