[PROPOSAL] DIAGNOSTICS <var> = SKIPPED_ROW_COUNT

From: dinesh kumar <dineshkumar02(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: [PROPOSAL] DIAGNOSTICS <var> = SKIPPED_ROW_COUNT
Date: 2015-10-13 04:11:22
Message-ID: CALnrH7o2B56GrM2EQNWBYAndYwh1GF=vf30eWa=xLmY2bQBN_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Team,

Would like to propose a new DIAGNOSTICS attribute, which returns the no.of
rows got skipped during the FOR UPDATE SKIP LOCKED;

Using this attribute, we can have more control on parallel operations like,

IF SKIPPED_ROW_COUNT =0 THEN
<<Treat me as, a complete transaction, and do below stuff>>
ELSE
<<Got only few tuples than required, and do below stuff>>
END IF;

Kindly let me know your inputs/suggestions on this.

Regards,
Dinesh
manojadinesh.blogspot.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-10-13 04:38:46 Re: [PROPOSAL] DIAGNOSTICS <var> = SKIPPED_ROW_COUNT
Previous Message Haribabu Kommi 2015-10-13 04:09:35 Re: Parallel Aggregate