Re: [GENERAL] plpgsql function with offset - Postgres 9.1

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] plpgsql function with offset - Postgres 9.1
Дата
Msg-id CAKFQuwbLBZrcEfP+GgAS-TLh_oZmz6HUtMXcpKAxErD3UU1jSg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] plpgsql function with offset - Postgres 9.1  (Patrick B <patrickbakerbr@gmail.com>)
Список pgsql-general
On Thu, Jun 15, 2017 at 3:49 PM, Patrick B <patrickbakerbr@gmail.com> wrote:
2017-06-16 10:35 GMT+12:00 David G. Johnston <david.g.johnston@gmail.com>:
On Thu, Jun 15, 2017 at 3:19 PM, Patrick B <patrickbakerbr@gmail.com> wrote:
2017-05-29 19:27 GMT+12:00 Albe Laurenz <laurenz.albe@wien.gv.at>:
Patrick B wrote:
> I am running a background task on my DB, which will copy data from tableA to tableB. For
> that, I'm writing a PL/PGSQL function which basically needs to do the following:
>


My problem is when using LIMIT to select the data I get none. I assume because the first 3000 rows (i'm using ORDER BY 1) are not candidates for the migration.

Your where clause should only allow candidates to be selected.  If it does then your theory is wrong.

David J.​

В списке pgsql-general по дате отправления:

Предыдущее
От: Patrick B
Дата:
Сообщение: Re: [GENERAL] plpgsql function with offset - Postgres 9.1
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Connection options