Re: Move from MySQL to PostgreSQL

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Move from MySQL to PostgreSQL
Date: 2023-03-29 13:34:29
Message-ID: f6651f9c-d39a-d5a8-f22a-a8b6fde9bb0a@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

basti schrieb am 29.03.2023 um 14:57:
> https://github.com/volkszaehler/volkszaehler.org/blob/master/lib/Util/Aggregation.php
>
> There are several problems.
>
> One of that ist the 'REPLACE INTO'.

Most probably INSERT ... ON CONFLICT

> An other problem is '@prev_timestamp := timestamp'

That's typically done with the lag() window function. No need for query variables.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2023-03-29 13:37:10 libpq: empty arrays have rank 0 in binary results? whatever the type's rank?
Previous Message basti 2023-03-29 12:57:13 Move from MySQL to PostgreSQL