Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ujavr-0008Mt-LA for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Jun 2013 20:00:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ujavq-00056I-GW for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Jun 2013 20:00:42 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UioRi-00085j-OU for pgsql-bugs@postgresql.org; Sat, 01 Jun 2013 16:14:22 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UioRg-0005BH-7w for pgsql-bugs@postgresql.org; Sat, 01 Jun 2013 16:14:22 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UioRf-0006Ln-Oh for pgsql-bugs@postgresql.org; Sat, 01 Jun 2013 16:14:20 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UioRa-00086Y-IO for pgsql-bugs@postgresql.org; Sat, 01 Jun 2013 16:14:14 +0000 Date: Sat, 01 Jun 2013 16:14:14 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8199: row datatypes are not hashable To: pgsql-bugs@postgresql.org From: divided.mind@gmail.com X-Pg-Spam-Score: 0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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:=20=20=20=20=20=20=20=20 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=3D# create type the_row as (mfg text, id text); CREATE TYPE divide=3D# with recursive rec(w, i) as (=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 select '(pow,xyzzy)'::the_row, 3 union select w, i-1 from rec where i > 0 ) select * from rec;=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ERROR: could not implement recursive UNION DETAIL: All column datatypes must be hashable. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs