pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add tests for tuplesort.c.
Date: Thu, 14 Nov 2019 00:09:20 +0000
Message-ID: <E1iV2hM-0004el-3g@gemulon.postgresql.org> (raw)

Add tests for tuplesort.c.

Previously significant parts of tuplesort.c were untested. This
commit, while not testing every path, significantly increases
coverage.  In particular, this adds tests for abbreviated key logic,
forward/backward scans & scrolling and mark/restore.

I tried to keep the table sizes reasonable, and stress the on-disk
paths by setting work_mem to low values for specific tests. The
buildfarm will tell whether more attention to test time is needed.

Author: Andres Freund
Discussion: https://postgr.es/m/20191013144153.ooxrfglvnaocsrx2@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4a252996d5fda7662b2afdf329a5c95be0fe3b01

Modified Files
--------------
src/test/regress/expected/tuplesort.out | 691 ++++++++++++++++++++++++++++++++
src/test/regress/parallel_schedule      |   2 +-
src/test/regress/sql/tuplesort.sql      | 304 ++++++++++++++
3 files changed, 996 insertions(+), 1 deletion(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1iV2hM-0004el-3g@gemulon.postgresql.org>
Permalink:  ../E1iV2hM-0004el-3g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iV2hM-0004el-3g@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Add tests for tuplesort.c.
  In-Reply-To: <E1iV2hM-0004el-3g@gemulon.postgresql.org>
  References: <E1iV2hM-0004el-3g@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox