Re: rename labels in heapam.c?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: rename labels in heapam.c?
Дата
Msg-id 20607.1553288963@sss.pgh.pa.us
обсуждение исходный текст
Ответ на rename labels in heapam.c?  (Andres Freund <andres@anarazel.de>)
Ответы Re: rename labels in heapam.c?
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> For the umpteenth time I was annoyed by the names of labels in
> heapam.c. It's really not useful to see a 'goto l1;' etc.

Yeah, those label names are uninformative as can be.

> How about renaming l1 to retry_delete_locked, l2 to retry_update_locked,
> l3 to retry_lock_tuple_locked etc? Especially with the subsidiary
> functions for updates and locking, it's not always clear from context
> where the goto jumps to.

Is it practical to get rid of the goto's altogether?  If not,
renaming would be an improvement.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: speeding up planning with partitions
Следующее
От: Andres Freund
Дата:
Сообщение: Re: rename labels in heapam.c?