Re: [PROPOSAL] DIAGNOSTICS = SKIPPED_ROW_COUNT - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [PROPOSAL] DIAGNOSTICS = SKIPPED_ROW_COUNT
Date
Msg-id CA+TgmoZhh+kBM494h_QyCySYUKzTis0CKWQ5SUuK7qAmCVJj3g@mail.gmail.com
Whole thread Raw
In response to Re: [PROPOSAL] DIAGNOSTICS = SKIPPED_ROW_COUNT  (dinesh kumar <dineshkumar02@gmail.com>)
Responses Re: [PROPOSAL] DIAGNOSTICS = SKIPPED_ROW_COUNT  (dinesh kumar <dineshkumar02@gmail.com>)
List pgsql-hackers
On Tue, Oct 13, 2015 at 10:37 PM, dinesh kumar <dineshkumar02@gmail.com> wrote:
> In an existing wait policies like WAIT(default) and NO WAIT,
> one can be sure to determine(Using ROW_COUNT daignostics counter),
> how many required tuples he processed in a transaction.
> But this is not case when it comes to SKIP LOCKED.

Sure it is.  You didn't process the ones that you skipped.  This is no
different than if you say WHERE a = 5.  Depending on plan choice and
table contents, you may have "skipped" a large number of rows where a
!= 5, or you may have skipped none at all.

> In my view, SKIP LOCKED is a nice feature, which gives only the available OR
> unlocked tuples.
> But those are not the complete required tuples for the given SQL statement.
> Isn't it ?!

They better be.  If you wanted the locked tuples, you shouldn't have
asked to skip them.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pam auth - add rhost item
Next
From: Robert Haas
Date:
Subject: Re: Performance improvement for joins where outer side is unique