Skip site navigation (1) Skip section navigation (2)

Re: LIST OWNED BY...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thom Brown <thom(at)linux(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: LIST OWNED BY...
Date: 2012-02-29 17:16:07
Message-ID: 3097.1330535767@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Thom Brown <thom(at)linux(dot)com> writes:
> So could we introduce either a command to show which objects are owned
> by a particular role, or allow a dry-run of DROP OWNED BY?

It's always been possible to do that:

	begin;
	drop owned by joe;
	rollback;

I believe this is already the recommended approach if you're concerned
about what DROP CASCADE will do.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Thom BrownDate: 2012-02-29 17:20:52
Subject: Re: LIST OWNED BY...
Previous:From: Thom BrownDate: 2012-02-29 16:46:31
Subject: LIST OWNED BY...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group