Re: pg_depend

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_depend
Дата
Msg-id 200107162313.f6GNDsg12126@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pg_depend  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: pg_depend  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
> Alex Pilosov writes:
> 
> > > I'm not so convinced on that idea.  Assume you're dropping object foo.
> > > You look at pg_depend and see that objects 145928, 264792, and 1893723
> > > depend on it.  Great, what do you do now?
> > I believe someone else previously suggested this:
> >
> > drop <type> object [RESTRICT | CASCADE]
> >
> > to make use of dependency info.
> 
> That was me.  The point, however, was, given object id 145928, how the
> heck to you know what table this comes from?

I think we will need the relid of the system table.  I imagine four
columns:
object relidobject oidreference relidreferences oid

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: Re: pg_depend
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_depend