Re: Query take a long time and use no index - Mailing list pgsql-general

From David Rowley
Subject Re: Query take a long time and use no index
Date
Msg-id CAApHDvpY-v5t7XHy6ED-DgYJ11GdXrWiVEQTE_3MaBipJc5=_A@mail.gmail.com
Whole thread Raw
In response to Re: Query take a long time and use no index  (basti <mailinglist@unix-solution.de>)
List pgsql-general
On Tue, 18 Jul 2023 at 06:19, basti <mailinglist@unix-solution.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



pgsql-general by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Upgrade Failure
Next
From: David Rowley
Date:
Subject: Re: Query take a long time and use no index