On 8/7/25 22:46, Tom Lane wrote:
> Octavio Alvarez <octalpg@alvarezp.org> writes:
>> I crafted the following rough patch which passes the target column
>> typmod on input functions instead of -1 for OIDs >= 16384. The intention
>> is to affect UDTs (user-defined types) only, not core data types.
>
> I don't really see how we could accept this? Wouldn't it break
> every existing extension datatype that uses typmod?
That was my first thought as well, but COPY sends the typmod directly
already, so if they support COPY, they should already be compatible.
If an extension doesn't support COPY it means then it doesn't support
the default pg_dump settings either.
Octavio.