pgsql: Add regression tests for csvlog with the logging collector - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add regression tests for csvlog with the logging collector
Date
Msg-id E1mPaic-000723-A1@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Refactor the syslogger pipe protocol to use a bitmask for its op
Next
From: Amit Kapila
Date:
Subject: pgsql: Doc: Change optional parameters grouping in Create Subscription.