Re: pgsql: pgindent: preserve blank lines around #else/#endif

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: pgindent: preserve blank lines around #else/#endif
Дата
Msg-id 20274.1392324722@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: pgindent: preserve blank lines around #else/#endif  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: pgsql: pgindent: preserve blank lines around #else/#endif  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-committers
Bruce Momjian <bruce@momjian.us> writes:
> On Thu, Feb 13, 2014 at 04:07:21PM -0300, Alvaro Herrera wrote:
>> BTW did this commit, or other recent pgindent tweaks, have more
>> implications than we were aware of?  I just tried running HEAD's
>> pgindent in 9.3 (in individual files) and among other changes I saw this
>> one:
>>
>> diff --git a/src/backend/access/common/reloptions.c b/src/backend/access/common/reloptions.c
>> index 17bbcb5..5595f47 100644
>> --- a/src/backend/access/common/reloptions.c
>> +++ b/src/backend/access/common/reloptions.c
>> @@ -624,6 +624,7 @@ transformRelOptions(Datum oldOptions, List *defList, char *namspace,
>> }
>> else if (def->defnamespace == NULL)
>> continue;
>> +
>> else if (pg_strcasecmp(def->defnamespace, namspace) != 0)
>> continue;
>>
>> This seems an odd change to be making.

> I just tested pgindent in head against that file in 9.3 and head and
> didn't see that additional blank line, which is cetainly odd.

It doesn't do that for me either.

            regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: pgcrypto: clarify 'md5' (hash) table entry
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pgsql: pgindent: preserve blank lines around #else/#endif