Re: Move from MySQL to PostgreSQL - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: Move from MySQL to PostgreSQL
Date
Msg-id f6651f9c-d39a-d5a8-f22a-a8b6fde9bb0a@gmx.net
Whole thread Raw
In response to Move from MySQL to PostgreSQL  (basti <mailinglist@unix-solution.de>)
List 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.




pgsql-general by date:

Previous
From: basti
Date:
Subject: Move from MySQL to PostgreSQL
Next
From: Dominique Devienne
Date:
Subject: libpq: empty arrays have rank 0 in binary results? whatever the type's rank?