Re: [BUGS] Long strings, short varchars - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [BUGS] Long strings, short varchars
Date
Msg-id Pine.LNX.4.44.0208200022220.838-100000@localhost.localdomain
Whole thread Raw
List pgsql-hackers
Tom Lane writes:

> In any case we need to distinguish implicit coercion for a store from
> explicit coercion.  Do your recent pg_cast changes make that any easier?

Possibly we could allow for registering both implicit and explicit cast
functions for the same combination.  Or we could make cast functions take
an optional second argument that tells whether the cast is implicit or
explicit.  We probably also need to take into account the typemod coercion
functions that are currently handled in a semi-internal way.  (Any
formalization of those should probably consider the possibility of
allowing typemods on arbitrary types.)  Not sure which way to go.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Large file support available
Next
From: Tom Lane
Date:
Subject: Proposal: make "opaque" obsolete