Re: Bootstrap DATA is a pita

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Bootstrap DATA is a pita
Дата
Msg-id 20150308163521.GA3857@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Bootstrap DATA is a pita  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Bootstrap DATA is a pita  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Bootstrap DATA is a pita  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 2015-03-04 10:25:58 -0500, Robert Haas wrote:
> Another advantage of this is that it would probably make git less
> likely to fumble a rebase.  If there are lots of places in the file
> where we have the same 10 lines in a row with occasional variations,
> rebasing a patch could easily pick the the wrong place to reapply the
> hunk.  I would personally consider a substantial increase in the rate
> of such occurrences as being a cure far, far worse than the disease.
> If you keep the entry for each function on just a couple of lines the
> chances of this happening are greatly reduced, because you're much
> likely to get a false match to surrounding context.

I'm not particularly worried about this. Especially with attribute
defaults it seems unlikely that you often have the same three
surrounding lines in both directions in a similar region of the file.

And even if it turns out to actually be bothersome, you can help
yourself by passing -U 5/setting diff.context = 5 or something like
that.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: get_object_address support for additional object types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bootstrap DATA is a pita