From: bouda@edookit.com
To: pgsql-bugs@postgresql.org
Subject: BUG #12108: Documentation: Limitation of shell types not mentioned
Date: Mon, 01 Dec 2014 00:34:48 +0000
Message-ID: <20141201003448.2567.45700@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 12108
Logged by: Ondřej Bouda
Email address: bouda@edookit.com
PostgreSQL version: 9.3.5
Operating system: Windows 7
Description:
According to an older discussion [1], shell types may only be used by
functions implemented in C. Indeed, in current versions, functions in, e.g.,
SQL or PL/pgSQL cannot be defined if an argument type or the return type is
just a shell type.
This is not mentioned in the documentation, however. On the contrary, the
CREATE TYPE documentation suggests creating a shell type as the "tricky" way
to define a range type with a canonical function. Neither CREATE FUNCTION
documentation mentions such a limitation. Thus, when implementing an SQL or
PL/pgSQL prototype for some new canonical function, one gets stuck on an
unexpected error.
I suggest mentioning the limitation on the CREATE TYPE page, in the
paragraph saying how to specify the canonical function.
Regards,
Ondřej Bouda
[1]
http://postgresql.nabble.com/Chicken-egg-problem-with-range-types-td5717030.html
--
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: bouda@edookit.com
Subject: Re: BUG #12108: Documentation: Limitation of shell types not mentioned
In-Reply-To: <20141201003448.2567.45700@wrigleys.postgresql.org>
References: <20141201003448.2567.45700@wrigleys.postgresql.org>
* 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