Re: Drop user cascade

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Drop user cascade
Date: 2016-10-19 10:53:05
Message-ID: nu7jae$3bu$1@blaine.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alex Ignatov (postgrespro) schrieb am 19.10.2016 um 12:26:
> Hello!
>
> Why we can DROP TABLE CASCADE, DROP VIEW CASCADE, DROP SEQUENCE CASCADE but we can’t DROP USER/ROLE CASCADE?
>
> Why do Postgres have no such functionality as DROP USER CASCADE? Is there any reasons in that absence?

You can do

drop owned by user_name;
drop user user_name;

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Ignatov (postgrespro) 2016-10-19 11:14:31 Re: Drop user cascade
Previous Message Alex Ignatov (postgrespro) 2016-10-19 10:26:41 Drop user cascade