From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Conway <mail@joeconway.com>
Cc: Jean-Denis Giguere <jdenisgiguere@fastmail.fm>
Cc: pgsql-admin@postgresql.org
Subject: Re: grant execute on many functions
Date: Wed, 30 Jun 2004 00:52:25 -0400
Message-ID: <3995.1088571145@sss.pgh.pa.us> (raw)
In-Reply-To: <40E24551.3080606@joeconway.com>
References: <40E1E1A9.8080207@fastmail.fm>
<40E1ECEF.5090007@joeconway.com>
<3318.1088567114@sss.pgh.pa.us>
<40E23F72.4000108@joeconway.com>
<3719.1088569577@sss.pgh.pa.us>
<40E24551.3080606@joeconway.com>
Joe Conway <mail@joeconway.com> writes:
> Tom Lane wrote:
>> Um. Sooner or later we ought to do something about the whole
>> automatic-casting-to-and-from-text issue. Datatypes shouldn't have to
>> supply both I/O procedures and text cast procedures.
> I thought automatic (i.e. implicit) casting-to-and-from-text was a no-no
> because it could cause strange and unintended conversion to take place,
> no?
Sorry, I was imprecise. I think that the system should automatically
provide a coercion to/from text implemented on top of a datatype's I/O
procedures. I do not say that that coercion should be *applied*
implicitly --- I'd favor requiring explicit cast syntax to get it.
For datatypes that have a close enough affinity to text for implicit
coercion behavior to be reasonable, we should expect the datatype
designer to create a pg_cast entry to say so.
In my mind cleaning up this area needs to tie into rationalizing the
current mismash of some-datatypes-have-implicit-coercions-and-some-
do-not behaviors. That doubtless involves breaking some existing
applications :-( but it would surely make the overall behavior much
more predictable.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mail@joeconway.com, jdenisgiguere@fastmail.fm
Subject: Re: grant execute on many functions
In-Reply-To: <3995.1088571145@sss.pgh.pa.us>
References: <40E1E1A9.8080207@fastmail.fm> <40E1ECEF.5090007@joeconway.com> <3318.1088567114@sss.pgh.pa.us> <40E23F72.4000108@joeconway.com> <3719.1088569577@sss.pgh.pa.us> <40E24551.3080606@joeconway.com> <3995.1088571145@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox