Re: Minor comment improvements in tablecmds.c

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Minor comment improvements in tablecmds.c
Дата
Msg-id 20140225184427.GY4759@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Minor comment improvements in tablecmds.c  (Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>)
Ответы Re: Minor comment improvements in tablecmds.c  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Etsuro Fujita wrote:
> This is a small patch to improve comments in tablecmds.c.  Please find
> attached a patch.

I find both patched and unpatched to be pretty illegible.  How about
something like

>  /*
> - * Execute ALTER TABLE/INDEX/SEQUENCE/VIEW/FOREIGN TABLE RENAME
> + * Execute ALTER <relation type> RENAME
> + *         This routine supports tables, indexes, sequences, views,
> + *        and foreign tables
>   */

and the two other ones with something like this:

>      /*
> -     * Grab an exclusive lock on the target table, index, sequence or view,
> -     * which we will NOT release until end of transaction.
> +     * Grab an exclusive lock on the target relation,
> +      * which we will NOT release until
> +     * end of transaction.

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



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Minor comment improvements in tablecmds.c
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: jsonb and nested hstore