From: dwayne.towell@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13053: type names pollute function name space
Date: Tue, 14 Apr 2015 21:24:54 +0000
Message-ID: <20150414212454.5205.74148@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: 13053
Logged by: Dwayne Towell
Email address: dwayne.towell@gmail.com
PostgreSQL version: 9.2.10
Operating system: CentOS
Description:
The following:
CREATE TYPE x AS (id int);
CREATE FUNCTION _x(text) RETURNS SETOF x AS $$ SELECT 1 WHERE $1='hi'; $$
LANGUAGE SQL;
SELECT _x('hi');
produces:
ERROR: array value must start with "{" or dimension information
LINE 1: SELECT _x('hi');
Which seems wrong. Creating a type named 'x' should not preempt my function
by finding an auto created(?) conversion(?) function.
--
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: dwayne.towell@gmail.com
Subject: Re: BUG #13053: type names pollute function name space
In-Reply-To: <20150414212454.5205.74148@wrigleys.postgresql.org>
References: <20150414212454.5205.74148@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