Re: [BUGS] BUG #14693: create materialized view forces btrim - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14693: create materialized view forces btrim
Date
Msg-id 32464.1496782012@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] BUG #14693: create materialized view forces btrim  (isb0459@gmail.com)
List pgsql-bugs
isb0459@gmail.com writes:
> I am trying to create a materialized view. I have a working SQL query that
> uses this expression: coalesce(trim(foo), bar). When I use that in the
> definition for create materialized view, Postgres force replaces the trim()
> call into a btrim() and breaks the query result.

trim() *is* btrim().  Whatever's going on here, you've leapt to an
incorrect conclusion about the cause.  How about showing us a
self-contained example of your problem?

https://wiki.postgresql.org/wiki/Guide_to_reporting_problems
        regards, tom lane


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

pgsql-bugs by date:

Previous
From: isb0459@gmail.com
Date:
Subject: [BUGS] BUG #14693: create materialized view forces btrim
Next
From: "David G. Johnston"
Date:
Subject: Re: [BUGS] BUG #14693: create materialized view forces btrim