Re: [v9.2] DROP statement reworks
От | Robert Haas |
---|---|
Тема | Re: [v9.2] DROP statement reworks |
Дата | |
Msg-id | CA+TgmoaTSizAJBz8q=43dVjx2MRPmEga9-ASqva1Nt8UUFeHpg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [v9.2] DROP statement reworks (Kohei KaiGai <kaigai@kaigai.gr.jp>) |
Ответы |
Re: [v9.2] DROP statement reworks
|
Список | pgsql-hackers |
On Wed, Oct 5, 2011 at 4:47 AM, Kohei KaiGai <kaigai@kaigai.gr.jp> wrote: > The get_relation_address() follows the logic in RemoveRelations() to be > eliminated by this patch, so it is not a code duplication. > The reason why we didn't consolidate this routine with get_object_address() > was that remove-index requires locks on the table which owns the index to > be removed, and it was ugly to add an ad-hoc if-block on the routine. Yeah, that's a problem that's been in the back of my mind for a bit now, but I haven't come up with a good solution. I don't think RemoveRelations() is the only place we have this problem, either. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: