Re: Move from MySQL to PostgreSQL

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: Move from MySQL to PostgreSQL
Дата
Msg-id f6651f9c-d39a-d5a8-f22a-a8b6fde9bb0a@gmx.net
обсуждение исходный текст
Ответ на Move from MySQL to PostgreSQL  (basti <mailinglist@unix-solution.de>)
Список 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 по дате отправления:

Предыдущее
От: basti
Дата:
Сообщение: Move from MySQL to PostgreSQL
Следующее
От: Dominique Devienne
Дата:
Сообщение: libpq: empty arrays have rank 0 in binary results? whatever the type's rank?