Feature request: temporary schemas

From: cowwoc <cowwoc(at)bbs(dot)darktech(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Feature request: temporary schemas
Date: 2014-09-14 21:01:54
Message-ID: 1410728514004-5819001.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'd like to propose the ability to create temporary schemas.

Unlike temporary tables, this feature would enable developers to create a
temporary schema once and execute CREATE TABLE statements without the
TEMPORARY parameter.

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 wish
to parameterize each CREATE TABLE statement (both environments are expected
to execute identical scripts). It further enables the use of temporary
functions, something which is not possible today (apparently you can hack
this too, but there isn't an "official" way of doing so).

See http://dba.stackexchange.com/q/76494/4719 for a related discussion.

Should I move this discussion to a different mailing list or is this the
correct location?

Thanks,
Gili

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Feature-request-temporary-schemas-tp5819001.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Willy-Bas Loos 2014-09-14 21:27:12 Re: 2 left joins causes seqscan
Previous Message Torsten Förtsch 2014-09-14 20:47:41 Re: pg_stat_replication in 9.3