Re: Functions not dropped. - Mailing list pgsql-general

From Gary Doades
Subject Re: Functions not dropped.
Date
Msg-id 4185EF8E.30585.A317D5A2@localhost
Whole thread Raw
In response to Functions not dropped.  (Glen Eustace <geustace@godzone.net.nz>)
List pgsql-general
On 1 Nov 2004 at 20:45, Glen Eustace wrote:

> When I tried to reload the production database dump, I got a series of
> errors relating to functions. I repeated the exercise but this time did
> a \df prior to trying to load the database. In the public schema for the
> newly created admin database where all the functions from the old one.
> It seems that the drop database doesn't drop all of the functions. Is it
> supposed to ? I am using 7.4.2 on FC2.
>
> If it isn't is there a way to clean them all out before the load ?
>

It's more likely that the functions are defined in the template1 database
and so get copied to every new database. You should remove them
from there if you don't want this behaviour.

Cheers,
Gary.


pgsql-general by date:

Previous
From: Glen Eustace
Date:
Subject: Functions not dropped.
Next
From: Sim Zacks
Date:
Subject: Re: Functions not dropped.