|
pg_dump -Fc mydb > Test_db.dump WARNING: out of shared memory
|
|||
---|---|---|---|
#18+
Спрашивает новичок, не судите строго :-) Полный текст ошибки: pg_dump: WARNING: out of shared memory pg_dump: [archiver (db)] query failed: ERROR: out of shared memory HINT: You might need to increase max_locks_per_transaction. pg_dump: [archiver (db)] query was: SELECT sequence_name, start_value, increment_by, CASE WHEN increment_by > 0 AND max_value = 9223372036854775807 THEN NULL WHEN increment_by < 0 AND max_value = -1 THEN NULL ELSE max_value END AS max_value, CASE WHEN increment_by > 0 AND min_value = 1 THEN NULL WHEN increment_by < 0 AND min_value = -9223372036854775807 THEN NULL ELSE min_value END AS min_value, cache_value, is_cycled FROM project_inflation_rates_id_seq Исходные данные: Ubuntu 14.Trusty Postgresql 9.3. Такой же результат на pg_dump mydb > Test_db.sql Прочитал совет прописать строчку: max_locks_per_transaction = 150 Прописал ее в конец блока " RESOURCE USAGE (except WAL)" - при перезагрузке службы postgres получил ошибку. Что не так делаю? Настройки postgresql.conf: # RESOURCE USAGE (except WAL) #------------------------------------------------------------------------------ # - Memory - shared_buffers = 1024MB # min 128kB # (change requires restart) #temp_buffers = 8MB # min 800kB #max_prepared_transactions = 0 # zero disables the feature # (change requires restart) # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory # per transaction slot, plus lock space (see max_locks_per_transaction). # It is not advisable to set max_prepared_transactions nonzero unless you # actively intend to use prepared transactions. #work_mem = 1MB # min 64kB #maintenance_work_mem = 16MB # min 1MB #max_stack_depth = 2MB # min 100kB # - Disk - #temp_file_limit = -1 # limits per-session temp file space # in kB, or -1 for no limit # - Kernel Resource Usage - #max_files_per_process = 1000 # min 25 # (change requires restart) #shared_preload_libraries = '' # (change requires restart) # - Cost-Based Vacuum Delay - #vacuum_cost_delay = 0 # 0-100 milliseconds #vacuum_cost_page_hit = 1 # 0-10000 credits #vacuum_cost_page_miss = 10 # 0-10000 credits #vacuum_cost_page_dirty = 20 # 0-10000 credits #vacuum_cost_limit = 200 # 1-10000 credits # - Background Writer - ESOURCE USAGE (except WAL)# 10-10000ms between rounds #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round #bgwriter_lru_multiplier = 2.0 # 0-10.0 multipler on buffers scanned/round # - Asynchronous Behavior - #effective_io_concurrency = 1 # 1-1000; 0 disables prefetching ... |
|||
:
Нравится:
Не нравится:
|
|||
23.01.2019, 16:17 |
|
pg_dump -Fc mydb > Test_db.dump WARNING: out of shared memory
|
|||
---|---|---|---|
#18+
FelsMan# - Background Writer - ESOURCE USAGE (except WAL)# 10-10000ms between rounds #bgwriter_lru_maxpages = 100 # 0-1000 max buffers written/round Ну и что это? Конечно парсер конфига удивляется что вы от него хотите. Файл конфига начинается с описания синтаксиса. ... |
|||
:
Нравится:
Не нравится:
|
|||
23.01.2019, 16:28 |
|
pg_dump -Fc mydb > Test_db.dump WARNING: out of shared memory
|
|||
---|---|---|---|
#18+
Так, открыл глаза, разглядел)) ESOURCE USAGE (except WAL)# 10-10000ms between rounds поправил на RESOURCE USAGE (except WAL)# 10-10000ms between rounds По поводу этой строчки: # per transaction slot, plus lock space (see max_locks_per_transaction). Меняю эту строчку на нижеследующую, так? #max_prepared_transactions = 0 # zero disables the feature на: #max_prepared_transactions = 150 # zero disables the feature ... |
|||
:
Нравится:
Не нравится:
|
|||
23.01.2019, 17:06 |
|
pg_dump -Fc mydb > Test_db.dump WARNING: out of shared memory
|
|||
---|---|---|---|
#18+
FelsMan, А теперь посмотрим как эта строка выглядела изначально: https://github.com/postgres/postgres/blob/REL9_3_STABLE/src/backend/utils/misc/postgresql.conf.sample#L144 Вопрос: что и зачем вы вообще здесь пытаетесь так криво менять? FelsManПо поводу этой строчки: # per transaction slot, plus lock space (see max_locks_per_transaction). Меняю эту строчку на нижеследующую, так? #max_prepared_transactions = 0 # zero disables the feature на: #max_prepared_transactions = 150 # zero disables the feature Я могу только удивляться. Вам прямым текстом сказано: попробуйте увеличить max_locks_per_transaction При чём тут max_prepared_transactions? ... |
|||
:
Нравится:
Не нравится:
|
|||
23.01.2019, 17:21 |
|
|
start [/forum/topic.php?fid=53&msg=39763660&tid=1995389]: |
0ms |
get settings: |
10ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
46ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
47ms |
get tp. blocked users: |
1ms |
others: | 265ms |
total: | 405ms |
0 / 0 |