Re: [HACKERS] possibility to specify template database for pg_regress - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] possibility to specify template database for pg_regress
Date
Msg-id CAB7nPqT-vw4uB4LC1EA7tU=30KNErwe18AA82Nk2NHEfgpauoQ@mail.gmail.com
Whole thread Raw
In response to [HACKERS] possibility to specify template database for pg_regress  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] possibility to specify template database for pg_regress  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Feb 8, 2017 at 12:43 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Is possible to specify template database for pg_regress?
> I have to run tests on database with thousands database objects. Using
> template is much faster than import these objects.

Not directly, all the databases created by pg_regress are enforced
with template0.. Having a switch sounds useful though without seeing
in details your use case.
-- 
Michael



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [HACKERS] DROP SUBSCRIPTION and ROLLBACK
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] possibility to specify template database for pg_regress