DROP INHERITS

Поиск
Список
Период
Сортировка
От Greg Stark
Тема DROP INHERITS
Дата
Msg-id 87mzcp7i4o.fsf@stark.xeocode.com
обсуждение исходный текст
Ответы Re: DROP INHERITS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers

I have a question about pg_depends, namely how do you identify the dependency
tied to a given relationship. Specifically to handle DROP INHERITS. Is there
any other reason there might be a dependency between two tables other than
inheritance? If there was how would you tell the dependencies apart?

Also, it seems to me the INHRELID syscache is entirely pointless. There isn't
a single consumer of it throughout the source tree. Nor can I think of any
reason anyone would want to look up the nth parent of a table. Do I
misunderstand what purpose this syscache serves?

On the other hand I see a few places where a syscache for a particular
child-parent pair might be useful. Would it make sense to create an index and
syscache for that?

I suppose it makes more sense to optimize this on the basis of what's used in
the planner and executor rather than ALTER TABLE commands though. I don't know
what would be helpful there. 

-- 
greg



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

Предыдущее
От: "Mark Woodward"
Дата:
Сообщение: Re: How to avoid transaction ID wrap
Следующее
От: Tom Lane
Дата:
Сообщение: Re: DROP INHERITS