Re: v13 planner ERROR: could not determine which collation to use for string comparison

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: v13 planner ERROR: could not determine which collation to use for string comparison
Date: 2020-07-21 19:34:01
Message-ID: CAKFQuwazqA2snGEOs2uTV7-Mi5gHknNC1OC3ogx-9HHc8u7t2A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tuesday, July 21, 2020, Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:

> We hit this on v13b2 and verified it fails on today's HEAD (ac25e7b039).
>
> explain SELECT 1 FROM sites NATURAL JOIN sectors WHERE
> sites.config_site_name != sectors.sect_name ;
> ERROR: could not determine which collation to use for string comparison
>
> I can workaround the issue by DELETEing stats for either column.
>
> It's possible we're doing soemthing wrong and I need to revisit docs..but
> this
> was working in v12.
>

This sounds suspiciously like a side-effect of:

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=022cd0bfd33968f2b004106cfeaa3b2951e7f322

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2020-07-21 19:44:58 Re: OpenSSL randomness seeding
Previous Message Justin Pryzby 2020-07-21 19:16:06 v13 planner ERROR: could not determine which collation to use for string comparison