Re: Cleaning up template 1

From: Thomas Good <tomg(at)admin(dot)nrnet(dot)org>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Cleaning up template 1
Date: 2002-03-25 20:58:31
Message-ID: Pine.LNX.4.05.10203251551001.12366-100000@admin.nrnet.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, 25 Mar 2002, Josh Berkus wrote:

> Folks,
>
> Due to an accident with a script, I created about 200 objects in the
> template1 database instead of the database for which they were
> intended.
> I am now faced with either deleting each of these object individually,
> or dumping my whole postgresql installation and re-installing each
> user database, one at a time.
>
> Can anyone suggest any shortcuts for fixing this problem?

Josh,

Isn't template0 around for events like this? (maybe if template1
goes missing, etc...)

I read somewhere that you can drop template1 and recreate it from
template0...

Tom

------------------------------------------------------------------------
Thomas Good tomg(at)admin(dot)nrnet(dot)org
Programmer/Analyst phone: 718-818-5528
Residential Services, Behavioral Health Services fax: 718-818-5056
Saint Vincent Catholic Medical Centers mobile: 917-282-7359
-- --
SQL Clinic - An Open Source Clinical Record www.sqlclinic.net
------------------------------------------------------------------------

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Good 2002-03-25 21:00:25 Re: Cleaning up template 1 -> template0 cloning
Previous Message Bruce Momjian 2002-03-25 20:58:28 Re: About EXECUTE in pl/pgsql