Re: drop user / role if exists - Mailing list pgsql-general

From Devrim GUNDUZ
Subject Re: drop user / role if exists
Date
Msg-id 1148206629.3177.0.camel@laptop.gunduz.org
Whole thread Raw
In response to Re: drop user / role if exists  ("P.M" <pmdanger@yahoo.com>)
List pgsql-general
Hi,

On Sun, 2006-05-21 at 02:25 -0700, P.M wrote:

> 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 :-(

I think you are running your query inside a transaction. Remove the
BEGIN and COMMIT parts...

--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/



pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: drop user / role if exists
Next
From: "P.M"
Date:
Subject: Re: drop user / role if exists