pgsql: Clean up temporary-memory management during ispell dictionary lo

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Clean up temporary-memory management during ispell dictionary lo
Дата
Msg-id E1P3dTB-0001kP-2B@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Clean up temporary-memory management during ispell dictionary loading.

Add explicit initialization and cleanup functions to spell.c, and keep
all working state in the already-existing ISpellDict struct.  This lets us
get rid of a static variable along with some extremely shaky assumptions
about usage of child memory contexts.

This commit is just code beautification and has no impact on functionality
or performance, but it opens the way to a less-grotty implementation of
Pavel's memory-saving hack, which will follow shortly.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=9b910def24e85c1c4ff993eae0fe511271fc8682

Modified Files
--------------
src/backend/tsearch/dict_ispell.c |    5 +-
src/backend/tsearch/spell.c       |   86 +++++++++++++++++++-----------------
src/include/tsearch/dicts/spell.h |   22 ++++++---
3 files changed, 62 insertions(+), 51 deletions(-)


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

Предыдущее
От: h-saito@pgfoundry.org (Hiroshi Saito)
Дата:
Сообщение: psqlodbc - psqlodbc: this was applied for release preparation.
Следующее
От: masao_fujii@pgfoundry.org (User Masao_fujii)
Дата:
Сообщение: pgbulkload - pgbulkload: Fixed problem with interactive authentication