pgsql: Add PostgresNode::command_fails_like() - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add PostgresNode::command_fails_like()
Date
Msg-id E1mLF3n-0007Dv-MJ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add PostgresNode::command_fails_like()

This is useful to test for a command failure with some default
connection parameters associated to a node, in combination with checks
on error patterns expected.  This routine will be used by an upcoming
future patch, but could be also plugged into some of the existing
tests.

Extracted from a larger patch by the same author.

Author: Ronan Dunklau
Discussion: https://postgr.es/m/5742739.ga3mSNWIix@aivenronan

Branch
------
master

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

Modified Files
--------------
src/test/perl/PostgresNode.pm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: Remove obsolete nbtree relation extension comment.
Next
From: Michael Paquier
Date:
Subject: pgsql: Refactor one conversion of SQLSTATE to string in elog.c