Re: postgres_fdw aggregate pushdown for group by with expressions - Mailing list pgsql-general

From Tom Lane
Subject Re: postgres_fdw aggregate pushdown for group by with expressions
Date
Msg-id 3598577.1709565748@sss.pgh.pa.us
Whole thread Raw
In response to Re: postgres_fdw aggregate pushdown for group by with expressions  (Michał Kłeczek <michal@kleczek.org>)
List pgsql-general
=?utf-8?Q?Micha=C5=82_K=C5=82eczek?= <michal@kleczek.org> writes:
> Does that mean that *any* expression containing text constants is not going to be pushed down??
> That would be a really serious issues I’d say.

If it contains text constants and not text variables, possibly so.
Keep in mind though that this rule is applied after constant-folding,
so that what we're left with is normally going to contain variables
at every level.  extract() is problematic because it combines a
text constant with a datetime (collation-less) variable.

            regards, tom lane



pgsql-general by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: Inconsistent results in timestamp/interval comparison
Next
From: "Koschicek-Krombholz, Bernhard"
Date:
Subject: Support for dates before 4713 BC