Re: Spec on pg_cast table/CREATE CAST command

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Spec on pg_cast table/CREATE CAST command
Date: 2002-07-17 18:45:36
Message-ID: Pine.LNX.4.44.0207172025400.9047-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> So the idea is to remove proimplicit again? We could still do that
> before 7.3, since no user depends on it yet. Are you intending a new
> system catalog to hold casts?

Yeah, it seems I forgot to mention that.

Btw., it occurred to me that this could also be the direction to
generalize the "preferred type" games for resolving union and case
constructs. Each declared cast could carry some additional properties,
such as "possibly truncating", "possible precision loss", or simply
"preferred", which could help the system to make smarter choices (such as
not doing int4+int8=int4).

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Eric Redmond 2002-07-17 19:32:43 GiST Indexing
Previous Message Peter Eisentraut 2002-07-17 18:45:08 Re: fmtId() and pg_dump