Обсуждение: pgsql: Add some test coverage of EvalPlanQual with non-locked tables.

Поиск
Список
Период
Сортировка

pgsql: Add some test coverage of EvalPlanQual with non-locked tables.

От
Tom Lane
Дата:
Add some test coverage of EvalPlanQual with non-locked tables.

A Salesforce colleague of mine griped that the regression tests don't
exercise EvalPlanQualFetchRowMarks() and allied routines.  Which is
a fair complaint.  Add test cases that go through the REFERENCE and COPY
code paths.  Unfortunately we don't have sufficient infrastructure right
now to exercise the FDW code path in the isolation tests, but this is
surely better than before.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/342a1ffa2177c0b260b68d7891b0d04598a58432

Modified Files
--------------
src/test/isolation/expected/eval-plan-qual.out |   40 ++++++++++++++++++++++++
src/test/isolation/specs/eval-plan-qual.spec   |   16 ++++++++++
2 files changed, 56 insertions(+)


Re: pgsql: Add some test coverage of EvalPlanQual with non-locked tables.

От
Alvaro Herrera
Дата:
Tom Lane wrote:
> Add some test coverage of EvalPlanQual with non-locked tables.
>
> A Salesforce colleague of mine griped that the regression tests don't
> exercise EvalPlanQualFetchRowMarks() and allied routines.  Which is
> a fair complaint.  Add test cases that go through the REFERENCE and COPY
> code paths.  Unfortunately we don't have sufficient infrastructure right
> now to exercise the FDW code path in the isolation tests, but this is
> surely better than before.

FWIW the test_decoding module has isolation tests (pretty ugly
admittedly).  I guess you could do something similar in the postgres_fdw
module.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services