pgsql: Add more regression tests for pg_ls_dir()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add more regression tests for pg_ls_dir()
Date: 2022-03-15 01:52:54
Message-ID: E1nTwMn-0006Iw-Up@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add more regression tests for pg_ls_dir()

This system function was being triggered once in the main regression
test suite to check its SRF configuration, and more in other test
modules but nothing checked the behavior of the options missing_ok and
include_dot_dirs. This commit adds some tests for both options, to
avoid mistakes if this code is manipulated in the future.

Extracted from a larger patch by the same author, with a few tweaks by
me.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20191227170220.GE12890@telsasoft.com

Branch
------
master

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

Modified Files
--------------
src/test/regress/expected/misc_functions.out | 23 +++++++++++++++++++++++
src/test/regress/sql/misc_functions.sql | 8 ++++++++
2 files changed, 31 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2022-03-15 02:36:53 pgsql: Fix collection of typos in the code and the documentation
Previous Message Thomas Munro 2022-03-15 01:31:51 pgsql: Fix pg_basebackup with in-place tablespaces.