From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Function parameter type precision modifiers ignored.
Date: Fri, 06 Feb 2015 17:39:23 -0500
Message-ID: <5361.1423262363@sss.pgh.pa.us> (raw)
In-Reply-To: <1423260348880-5837000.post@n5.nabble.com>
References: <54D39E4A.9030600@opalsoftware.co.uk>
<4295.1423259824@sss.pgh.pa.us>
<1423260348880-5837000.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
David G Johnston <david.g.johnston@gmail.com> writes:
> Tom Lane-2 wrote
>> Attributes applied to function parameter types --- or result types for
>> that matter --- are entirely ignored by Postgres; only the base type
>> matters. This is documented.
> Maybe it would be more obvious in the section detailing "argtype"...but its
> not like its buried deep in the documentation. The bigger problem is
> understanding exactly what that notes means in reality. Often that means
> getting bit by the behavior first and then reading about what just bit you.
> Happens to all of us.
> I'm for the idea of issuing a syntax error upon seeing "type()" in general
> but not strongly since perfectly valid code (often back-stopped by table
> constraints) currently works and would otherwise have no reason to change
> other than to conform to this decision.
Another possibility is to issue a WARNING or NOTICE rather than hard
error.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
Subject: Re: Function parameter type precision modifiers ignored.
In-Reply-To: <5361.1423262363@sss.pgh.pa.us>
References: <54D39E4A.9030600@opalsoftware.co.uk> <4295.1423259824@sss.pgh.pa.us> <1423260348880-5837000.post@n5.nabble.com> <5361.1423262363@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