pgsql: Add simple tests of EvalPlanQual using the isolationtester infra

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add simple tests of EvalPlanQual using the isolationtester infra
Date: 2012-01-28 22:55:30
Message-ID: E1RrHBC-0005wi-BQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add simple tests of EvalPlanQual using the isolationtester infrastructure.

Much more could be done here, but at least now we have *some* automated
test coverage of that mechanism. In particular this tests the writable-CTE
case reported by Phil Sorber.

In passing, remove isolationtester's arbitrary restriction on the number of
steps in a permutation list. I used this so that a single spec file could
be used to run several related test scenarios, but there are other possible
reasons to want a step series that's not exactly a permutation. Improve
documentation and fix a couple other nits as well.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/759d9d67695783f6d04a85aba383a41c5382548c

Modified Files
--------------
src/test/isolation/README | 89 ++++++++++++++++--------
src/test/isolation/expected/eval-plan-qual.out | 51 ++++++++++++++
src/test/isolation/isolation_schedule | 1 +
src/test/isolation/isolationtester.c | 17 ++---
src/test/isolation/specs/eval-plan-qual.spec | 56 +++++++++++++++
5 files changed, 176 insertions(+), 38 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-01-29 01:25:02 pgsql: Fix handling of init_plans list in inheritance_planner().
Previous Message Magnus Hagander 2012-01-28 09:04:11 pgsql: Prevent logging "failed to stat file: success" for temp files