Re: pgsql: At promotion, archive last segment from old timeline with .parti

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pgsql: At promotion, archive last segment from old timeline with .parti
Дата
Msg-id 555F53D0.7050506@gmx.net
обсуждение исходный текст
Ответ на pgsql: At promotion, archive last segment from old timeline with .parti  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Список pgsql-committers
On 5/8/15 3:07 PM, Heikki Linnakangas wrote:
> At promotion, archive last segment from old timeline with .partial suffix.

There appears to be a mixup here:

+               char        origpath[MAXPGPATH];
+               char        partialfname[MAXFNAMELEN];
+               char        partialpath[MAXPGPATH];
+
+               XLogFilePath(origpath, EndOfLogTLI, endLogSegNo);
+               snprintf(partialfname, MAXPGPATH, "%s.partial", origfname);
+               snprintf(partialpath, MAXPGPATH, "%s.partial", origpath);

Some compilers are complaining that the snprintf(partialfname, ...)
could overflow.



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: pgsql: Unpack jbvBinary objects passed to pushJsonbValue
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix recently-introduced crash in array_contain_compare().