minor patch submission: CREATE CAST ... AS EXPLICIT

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: minor patch submission: CREATE CAST ... AS EXPLICIT
Date: 2011-05-21 13:46:41
Message-ID: alpine.DEB.2.02.1105211540430.12292@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello,

Please find attached a minor stylish patch. It compiles and the update
test cases work for me.

Description:

Add "AS EXPLICIT" to "CREATE CAST"

This gives a name to the default case of "CREATE CAST", which creates a
cast which must be explicitely invoked.

From a language definition perspective, it is helpful to have a name for
every case instead of an implicit fallback, without any word to describe
it. See for instance "CREATE USER CREATEDB/NOCREATEDB" or "CREATE RULE ...
DO ALSO/INSTEAD" for similar occurences of naming default cases.

--
Fabien.

Attachment Content-Type Size
as_explicit.patch text/x-diff 6.3 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-05-21 15:38:42 Re: minor patch submission: CREATE CAST ... AS EXPLICIT
Previous Message Heikki Linnakangas 2011-05-21 12:25:30 Re: ALTER TYPE DROP + composite-typed col vs. pg_upgrade