Re: drop user / role if exists

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "P(dot)M" <pmdanger(at)yahoo(dot)com>
Cc: "PostgreSQL General (EN)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: drop user / role if exists
Date: 2006-05-21 09:49:52
Message-ID: 20060521094952.GB10443@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, May 21, 2006 at 02:25:44AM -0700, P.M wrote:
> Thanks Martijn, but i'm currently working on the SQL script to create the full database. Not on some stored procedure.
>
> And when i run the SQL script, PostgreSQL stops just on first
> error....so if user does not exist, my script is not any longer run
> :-(
>
> do you have any idea how to pass over this issue ?

That's odd. psql doesn't stop on errors unless you enable
ON_ERROR_STOP, which is not the default. What are you using to run the
script?

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message P.M 2006-05-21 09:59:25 Re: drop user / role if exists
Previous Message P.M 2006-05-21 09:25:44 Re: drop user / role if exists