pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: divided.mind@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8199: row datatypes are not hashable
Date: Sat, 01 Jun 2013 16:14:14 +0000
Message-ID: <E1UioRa-00086Y-IO@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:      8199
Logged by:          Rafal Rzepecki
Email address:      divided.mind@gmail.com
PostgreSQL version: 9.2.4
Operating system:   Ubuntu 13.04
Description:        

Row datatypes are currently not hashable, which makes it slower to use them
in a UNIQUEd query and impossible to use them in a recursive query (unless
using UNION ALL):

divide=# create type the_row as (mfg text, id text);
CREATE TYPE
divide=# with recursive rec(w, i) as (                                      
                                                           
select '(pow,xyzzy)'::the_row, 3
union
select w, i-1 from rec where i > 0
) select * from rec;                
ERROR:  could not implement recursive UNION
DETAIL:  All column datatypes must be hashable.




-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



Message-ID: <E1UioRa-00086Y-IO@wrigleys.postgresql.org>
Permalink:  ../E1UioRa-00086Y-IO@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1UioRa-00086Y-IO@wrigleys.postgresql.org

 · 

reply

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: divided.mind@gmail.com
  Subject: Re: BUG #8199: row datatypes are not hashable
  In-Reply-To: <E1UioRa-00086Y-IO@wrigleys.postgresql.org>
  References: <E1UioRa-00086Y-IO@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