Re: Query take a long time and use no index

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: basti <mailinglist(at)unix-solution(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Query take a long time and use no index
Date: 2023-07-18 11:28:02
Message-ID: CAApHDvpY-v5t7XHy6ED-DgYJ11GdXrWiVEQTE_3MaBipJc5=_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 18 Jul 2023 at 06:19, basti <mailinglist(at)unix-solution(dot)de> wrote:
>
> Thanks a lot tomas, i will try it.
>
> I have find out that there is a 'aggregation' function in the frontend.
> But this is MySQL specific and I have no idea the transform it to postgres.
>
> It looks like:
> 'REPLACE INTO aggregate (channel_id, type, timestamp, value, count)

Perhaps that's something like PostgreSQL's INSERT ON CONFLICT [1]

David

[1] https://www.postgresql.org/docs/current/sql-insert.html

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Rowley 2023-07-18 11:34:39 Re: Query take a long time and use no index
Previous Message Daniel Gustafsson 2023-07-18 10:38:42 Re: Upgrade Failure