Re: Function with limit and offset - PostgreSQL 9.3

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: marcinha rocha <marciaestefanidarocha(at)hotmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Function with limit and offset - PostgreSQL 9.3
Date: 2017-06-09 01:49:43
Message-ID: CAKFQuwbKRLp7BwywcptmD-Ahpq1h=fQV_uyXitsgfDvF=x0VXg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday, June 8, 2017, marcinha rocha <marciaestefanidarocha(at)hotmail(dot)com>
wrote:

> On my original select, the row will have migrated = false. Maybe All I
> need to put is a limit 2000 and the query will do the rest?
>
>
You shoud try to avoid the for loop, but yes a limit 2000 on the for loop
query should work since the migrated flag will ensure the same rows aren't
selected again.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message marcinha rocha 2017-06-09 02:13:37 Re: Function with limit and offset - PostgreSQL 9.3
Previous Message marcinha rocha 2017-06-09 01:36:01 Re: Function with limit and offset - PostgreSQL 9.3