Re: select distinct runs slow on pg 10.6

From: Rick Otten <rottenwindfish(at)gmail(dot)com>
To: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: select distinct runs slow on pg 10.6
Date: 2019-09-11 17:57:25
Message-ID: CAMAYy4JgFVpSTwP9Jt0moVVq8qg8mmiWLGf+JE8VpFULNqfCzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Sep 11, 2019 at 12:38 PM Dinesh Somani <dinesh(at)opsveda(dot)com> wrote:

> I think Merlin has outlined pretty much all the options and very neatly.
> (As an asides Merlin could you possibly elaborate on the "C Hack" how that
> might be accomplished.)
>
> To OP, I am curious if the performance changes were the query rewritten
> such that all timestamp columns were listed first in the selection. I
> understand it might not be feasible to make this change in your real
> application without breaking the contract.
>
> Regards
> Dinesh
>

It looks like AWS has a pgbouncer query re-writer service that might be a
starting point:
https://aws.amazon.com/blogs/big-data/query-routing-and-rewrite-introducing-pgbouncer-rr-for-amazon-redshift-and-postgresql/

I've never used it.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2019-09-12 14:19:11 Re: select distinct runs slow on pg 10.6
Previous Message Dinesh Somani 2019-09-11 16:38:19 Re: select distinct runs slow on pg 10.6