Re: Drop user cascade

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alex Ignatov \(postgrespro\)" <a(dot)ignatov(at)postgrespro(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Drop user cascade
Date: 2016-10-19 13:31:27
Message-ID: 24559.1476883887@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Alex Ignatov \(postgrespro\)" <a(dot)ignatov(at)postgrespro(dot)ru> writes:
> Why do Postgres have no such functionality as DROP USER CASCADE? Is there
> any reasons in that absence?

The short answer is that DROP USER couldn't reach across databases to get
rid of owned objects in other databases. See

https://www.postgresql.org/docs/9.6/static/role-removal.html

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alex Ignatov (postgrespro) 2016-10-19 14:03:20 Re: Drop user cascade
Previous Message Alex Ignatov (postgrespro) 2016-10-19 12:59:28 Re: journaled FS and and WAL