Minor comment improvements in tablecmds.c

Поиск
Список
Период
Сортировка
Искать

Minor comment improvements in tablecmds.c

От:
Etsuro Fujita <fujita.etsuro@lab.ntt.co.jp>
Дата:
Вложения:
This is a small patch to improve comments in tablecmds.c.  Please find
attached a patch.

Thanks,

Best regards,
Etsuro Fujita

Re: Minor comment improvements in tablecmds.c

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Mon, Feb 24, 2014 at 9:40 PM, Etsuro Fujita
 wrote:
> This is a small patch to improve comments in tablecmds.c.  Please find
> attached a patch.

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: Minor comment improvements in tablecmds.c

От:
Alvaro Herrera <alvherre@2ndquadrant.com>
Дата:
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  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


Re: Minor comment improvements in tablecmds.c

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Tue, Feb 25, 2014 at 1:44 PM, Alvaro Herrera
 wrote:
> 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  RENAME
>> + *           This routine supports tables, indexes, sequences, views,
>> + *           and foreign tables
>>   */

I don't find that to be an improvement.

> 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.

But I do like that better.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


FAQ