Re: pg_regress restart cluster? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_regress restart cluster?
Date
Msg-id 25395.1568052742@sss.pgh.pa.us
Whole thread Raw
In response to pg_regress restart cluster?  (Jeremy Finzel <finzelj@gmail.com>)
List pgsql-hackers
Jeremy Finzel <finzelj@gmail.com> writes:
> I am using the basic extension building infrastructure with sql and
> expected files, but what I want to test is changing a config setting and
> then restarting the cluster with shared_preload_libraries in place. Is
> there a canonical way to do this or does anyone have any examples of this?
> I appreciate it very much!

pg_regress doesn't have any support for that, but you can do it pretty
easily in the context of a TAP test.  There are a bunch of examples
in the existing TAP tests --- look around for uses of append_conf().

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Sloppy port assignment in src/test/ldap/
Next
From: Yuli Khodorkovskiy
Date:
Subject: Re: add a MAC check for TRUNCATE