From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of Melvin Davidson Sent: Wednesday, October 19, 2016 5:35 PM To: Alex Ignatov (postgrespro) <a.ignatov@postgrespro.ru> Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general@postgresql.org Subject: Re: [GENERAL] Drop user cascade
"Alex Ignatov \(postgrespro\)" <a.ignatov@postgrespro.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
Some security consideration bear in mind that DROP OWNED cant delete own objects in other DBs? In general what stops us to do inter DBs connection like MSSQL?
>In general what stops us to do inter DBs connection like MSSQL?
It currently is not generic to PostgreSQL, but you can do that with the dblink extension/functions.
--
Melvin Davidson I reserve the right to fantasize. Whether or not you wish to share my fantasy is entirely up to you.
I know about dblink =)
The question was – is there any caveats to not allow xross db access. Maybe some security considerations prevent to implement it.
We all know that PG = one process rules multiple DBs why not to allow direct access to another DB. We have one transaction counter and so on where is the problems if any?