Re: Feature request: temporary schemas

From: Nick Guenther <nguenthe(at)uwaterloo(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Feature request: temporary schemas
Date: 2014-09-14 21:51:39
Message-ID: 4de697c6-7588-41d5-8bfa-aa32a0ffa53a@email.android.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On September 14, 2014 5:01:54 PM EDT, cowwoc <cowwoc(at)bbs(dot)darktech(dot)org> wrote:
>Hi,
>
>I'd like to propose the ability to create temporary schemas.
>
>This would facilitate running unit tests, where developers would like
>to run
>the same creation script for unit tests and production code but do not

What if you ran a temporary database instead? You can use some combination of PGHOST, PGPORT, PGUSER and PGDATABASE to "pg_ctl start" an empty DB and then point your unit tests at it. Then you aren't in danger of wiping out your production DB either.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message cowwoc 2014-09-14 22:01:15 Re: Feature request: temporary schemas
Previous Message Willy-Bas Loos 2014-09-14 21:27:12 Re: 2 left joins causes seqscan