Re: Proposal for resolving casting issues - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Proposal for resolving casting issues
Date
Msg-id 200209171840.g8HIeON02733@candle.pha.pa.us
Whole thread Raw
In response to Re: Proposal for resolving casting issues  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Proposal for resolving casting issues  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Tom Lane wrote:
> I favor using IMPLICIT, which would make the syntax of CREATE CAST be
> 
>     CREATE CAST (sourcetype AS targettype)
>         WITH FUNCTION funcname (argtype)
>         [ AS ASSIGNMENT | IMPLICIT ]
>     
>     CREATE CAST (sourcetype AS targettype)
>         WITHOUT FUNCTION
>         [ AS ASSIGNMENT | IMPLICIT ]
> 
> Or possibly it should be AS IMPLICIT?

I think AS IMPLICIT would be better because we have other AS [var]
clauses.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Lamar Owen
Date:
Subject: RPMS for 7.3 beta.
Next
From: Tom Lane
Date:
Subject: Numeric casting rules, take two