pgsql: Add regression tests for csvlog with the logging collector

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add regression tests for csvlog with the logging collector
Date: 2021-09-13 01:25:10
Message-ID: E1mPaic-000723-A1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add regression tests for csvlog with the logging collector

These are added in the existing tests of pg_ctl for log rotation, that
already tested stderr. The same amount of coverage is added for csvlog:
- Checks for pg_current_logfile().
- Log rotation with expected file name.
- Log contents generated.

This test is refactored to minimize the amount of work required to add
tests for new log formats, easing some upcoming work.

Author: Michael Paquier, Sehrope Sarkuni
Discussion: https://postgr.es/m/CAH7T-aqswBM6JWe4pDehi1uOiufqe06DJWaU5=X7dDLyqUExHg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/72b76f76161c78dd1be42592c4e5b980beef5f26

Modified Files
--------------
src/bin/pg_ctl/t/004_logrotate.pl | 95 ++++++++++++++++++++++++---------------
1 file changed, 58 insertions(+), 37 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-09-13 03:07:38 pgsql: Doc: Change optional parameters grouping in Create Subscription.
Previous Message Michael Paquier 2021-09-13 00:04:11 pgsql: Refactor the syslogger pipe protocol to use a bitmask for its op