Re: ALTER command reworks

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: ALTER command reworks
Дата
Msg-id 1348866644-sup-39@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: ALTER command reworks  (Kohei KaiGai <kaigai@kaigai.gr.jp>)
Ответы Re: ALTER command reworks  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Excerpts from Kohei KaiGai's message of lun sep 10 08:08:32 -0300 2012:

> As attached, I split off the original one into three portions; for set-schema,
> set-owner and rename-to. Please apply them in order of patch filename.

Hmm, in the first patch, it seems to me we can simplify
AlterObjectNamespace's signature: instead of passing all the details of
the object class (cache Ids and attribute numbers and so on), just do

AlterObjectNamespace(catalog-containing-object, objectId, newNamespaceOid)

AlterObjectNamespace then looks up the catcache_oid and so on
internally.  The only difference from what's happening in the submitted
patch is that in the AlterCollationNamespace case, AlterObjectNamespace
would have to look them up instead of getting them directly from the
caller as the patch currently has it.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [9.1] 2 bugs with extensions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: out of date warnings