Re: simple function index question

From: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
To: Michael Moore <michaeljmoore(at)gmail(dot)com>
Cc: postgres list <pgsql-sql(at)postgresql(dot)org>
Subject: Re: simple function index question
Date: 2016-03-23 00:54:23
Message-ID: CAFnxYwjm3BjTy6pLxL3DNSrovxbqAU5wVPzyp-JjfOc7Bv2DTw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tuesday, March 22, 2016, Michael Moore <michaeljmoore(at)gmail(dot)com> wrote:
>
> ERROR: column "" has pseudo-type record
>

Just guessing, and don't have time to verify, but you might try casting the
null value in the WHEN clause to the same type as
the question_set_dir_map_key column in the ELSE clause.

I'd probably also try doing this with two separate indexes; this feels a
bit like it might asking the one index to do too much.

--
:wq

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Igor Neyman 2016-03-23 12:56:33 Re: simple function index question
Previous Message David G. Johnston 2016-03-23 00:39:24 Re: simple function index question