pgsql: Improve coverage of psql for backslash commands with \if and\el - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Improve coverage of psql for backslash commands with \if and\el
Date
Msg-id E1i8E1z-0002HI-KZ@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Rearrange postmaster's startup sequence for better sysloggerres
Next
From: Michael Paquier
Date:
Subject: pgsql: Add to pageinspect function to make t_infomask/t_infomask2human