Re: Functions not dropped.

From: "Gary Doades" <gpd(at)gpdnet(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Functions not dropped.
Date: 2004-11-01 08:10:54
Message-ID: 4185EF8E.30585.A317D5A2@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2004-11-01 08:23:10 Re: Functions not dropped.
Previous Message Glen Eustace 2004-11-01 07:45:42 Functions not dropped.