pgsql: Improve coverage of psql for backslash commands with \if and \el

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve coverage of psql for backslash commands with \if and \el
Date: 2019-09-12 01:36:19
Message-ID: E1i8E1z-0002HI-KZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve coverage of psql for backslash commands with \if and \elif

This adds tests to cover more code paths to ignore backslash commands in
false branches when using \if|\elif|\else, and improves the coverage of
\elif.

Author: Fabien Coelho
Discussion: https://postgr.es/m/alpine.DEB.2.21.1908281618520.28828@lancre

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aafe2762b152ffd4cb839d2a01df6cfcc3c6df6c

Modified Files
--------------
src/test/regress/expected/psql.out | 63 +++++++++++++++++++++++++++++++++-----
src/test/regress/sql/psql.sql | 62 ++++++++++++++++++++++++++++++++-----
2 files changed, 111 insertions(+), 14 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-09-12 06:09:39 pgsql: Add to pageinspect function to make t_infomask/t_infomask2 human
Previous Message Tom Lane 2019-09-11 15:43:12 pgsql: Rearrange postmaster's startup sequence for better syslogger res