pgsql: Fix SortTocFromFile() to cope with lines that are too long for i

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix SortTocFromFile() to cope with lines that are too long for i
Дата
Msg-id E1Q7rKe-00066X-SY@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix SortTocFromFile() to cope with lines that are too long for its buffer.

The original coding supposed that a dump TOC file could never contain lines
longer than 1K.  The folly of that was exposed by a recent report from
Per-Olov Esgard.  We only really need to see the first dozen or two bytes
of each line, since we're just trying to read off the numeric ID at the
start of the line; so there's no need for a particularly huge buffer.
What there is a need for is logic to not process continuation bufferloads.

Back-patch to all supported branches, since it's always been like this.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9a9c7c2eb10b8df67c5652a6678a172b83a262eb

Modified Files
--------------
src/bin/pg_dump/pg_backup_archiver.c |   29 ++++++++++++++++++++++++-----
1 files changed, 24 insertions(+), 5 deletions(-)


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Preserve pg_largeobject_metadata.relfrozenxid in pg_upgrade.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix SortTocFromFile() to cope with lines that are too long for i