Size: a a a

PostgreSQL + 1C + Linux

2021 February 24

АД

Антон Дорошкевич... in PostgreSQL + 1C + Linux
👨🏼‍💻
Всем привет, подскажите, если почистили темп и такое потом началось, как то можно оживить файл?
значит чистили при работающем сервере
источник

АД

Антон Дорошкевич... in PostgreSQL + 1C + Linux
temp можно чистить только при остановленной службе
источник

A

Alkalisk in PostgreSQL + 1C + Linux
Sergey Grebennikov
Но он и так по умолчанию находится в /run/postgresql
К рамках темы которую сегодня обсуждали - pg_stat_tmp
Подскажите как можно убедиться, что у меня pg_stat_tmp вынесена или не вынесена на RAM диск? Никаких дополнительных настроек я для этого не делал. PostgreSQL от pgpro
postgres=# show stats_temp_directory;
stats_temp_directory
----------------------
pg_stat_tmp
(1 строка)
источник

SG

Sergey Grebennikov in PostgreSQL + 1C + Linux
посомтри в конфигурационном файле по какому пути находится каталог и сходит туда посмотри даты изменения файлов
источник

SG

Sergey Grebennikov in PostgreSQL + 1C + Linux
ну и есть ли там каталог этот вообще
источник

СГ

Сергей Голод... in PostgreSQL + 1C + Linux
Alkalisk
К рамках темы которую сегодня обсуждали - pg_stat_tmp
Подскажите как можно убедиться, что у меня pg_stat_tmp вынесена или не вынесена на RAM диск? Никаких дополнительных настроек я для этого не делал. PostgreSQL от pgpro
postgres=# show stats_temp_directory;
stats_temp_directory
----------------------
pg_stat_tmp
(1 строка)
судя по значению этой переменной статистика у вас лежит в /var/lib/.../data/pg_stat_tmp/
источник

A

Alkalisk in PostgreSQL + 1C + Linux
Каталог есть, файлы в нем есть. Получается, что в моем случае они сохраняются на диск и нужно выносить на RAM?
источник

СГ

Сергей Голод... in PostgreSQL + 1C + Linux
Alkalisk
Каталог есть, файлы в нем есть. Получается, что в моем случае они сохраняются на диск и нужно выносить на RAM?
желательно выносить, скорость работы ПГ увеличится
источник

СГ

Сергей Голод... in PostgreSQL + 1C + Linux
Alkalisk
Каталог есть, файлы в нем есть. Получается, что в моем случае они сохраняются на диск и нужно выносить на RAM?
тип диска, на котором размещена data/, какой?
источник

LK

L K in PostgreSQL + 1C + Linux
Знатоки подскажите pls что может быть?
pg_probackup спасает, но стало часто.
>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.182 MSK >HINT:  In a moment you should be able to reconnect to the database and repeat your command.
< 2021-02-22 04:25:09.190 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.190 MSK >DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.190 MSK >HINT:  In a moment you should be able to reconnect to the da< 2021-02-22 04:25:09.146 MSK >PANIC:  could not fsync file "base/57297/15693139": Bad file descriptor
< 2021-02-22 04:25:09.173 MSK >LOG:  checkpointer process (PID 3808) exited with exit code 3
< 2021-02-22 04:25:09.173 MSK >LOG:  terminating any other active server processes
< 2021-02-22 04:25:09.173 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.173 MSK >DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.173 MSK >HINT:  In a moment you should be able to reconnect to the database and repeat your command.
< 2021-02-22 04:25:09.182 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.182 MSK tabase and repeat your command.
< 2021-02-22 04:25:09.282 MSK >LOG:  all server processes terminated; reinitializing
< 2021-02-22 04:25:09.351 MSK >LOG:  database system was interrupted; last known up at 2021-02-22 04:24:20 MSK
< 2021-02-22 04:25:29.927 MSK >LOG:  could not fsync file "./base/57297/15693137.4": Bad file descriptor
< 2021-02-22 04:25:29.963 MSK >LOG:  could not fsync file "./base/57297/15693139": Bad file descriptor
< 2021-02-22 04:25:30.127 MSK >LOG:  database system was not properly shut down; automatic recovery in progress
< 2021-02-22 04:25:30.191 MSK >LOG:  redo starts at 19B/DE036290
< 2021-02-22 04:25:36.699 MSK >LOG:  redo done at 19C/1D3FFE78
< 2021-02-22 04:25:36.699 MSK >LOG:  last completed transaction was at log time 2021-02-22 04:25:08.857086+03
< 2021-02-22 04:25:46.423 MSK >PANIC:  could not fsync file "base/57297/15693137.4": Bad file descriptor
< 2021-02-22 04:25:46.496 MSK >LOG:  shutdown at recovery target
< 2021-02-22 04:25:46.496 MSK >LOG:  abnormal database system shutdown
< 2021-02-22 04:25:46.516 MSK >LOG:  database system is shut down
источник

A

Alkalisk in PostgreSQL + 1C + Linux
Сергей Голод
тип диска, на котором размещена data/, какой?
из 4х дисков Samsung SSD EVO 860 собран zfs pool
источник

JS

Juriy Strashnov in PostgreSQL + 1C + Linux
L K
Знатоки подскажите pls что может быть?
pg_probackup спасает, но стало часто.
>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.182 MSK >HINT:  In a moment you should be able to reconnect to the database and repeat your command.
< 2021-02-22 04:25:09.190 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.190 MSK >DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.190 MSK >HINT:  In a moment you should be able to reconnect to the da< 2021-02-22 04:25:09.146 MSK >PANIC:  could not fsync file "base/57297/15693139": Bad file descriptor
< 2021-02-22 04:25:09.173 MSK >LOG:  checkpointer process (PID 3808) exited with exit code 3
< 2021-02-22 04:25:09.173 MSK >LOG:  terminating any other active server processes
< 2021-02-22 04:25:09.173 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.173 MSK >DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.173 MSK >HINT:  In a moment you should be able to reconnect to the database and repeat your command.
< 2021-02-22 04:25:09.182 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.182 MSK tabase and repeat your command.
< 2021-02-22 04:25:09.282 MSK >LOG:  all server processes terminated; reinitializing
< 2021-02-22 04:25:09.351 MSK >LOG:  database system was interrupted; last known up at 2021-02-22 04:24:20 MSK
< 2021-02-22 04:25:29.927 MSK >LOG:  could not fsync file "./base/57297/15693137.4": Bad file descriptor
< 2021-02-22 04:25:29.963 MSK >LOG:  could not fsync file "./base/57297/15693139": Bad file descriptor
< 2021-02-22 04:25:30.127 MSK >LOG:  database system was not properly shut down; automatic recovery in progress
< 2021-02-22 04:25:30.191 MSK >LOG:  redo starts at 19B/DE036290
< 2021-02-22 04:25:36.699 MSK >LOG:  redo done at 19C/1D3FFE78
< 2021-02-22 04:25:36.699 MSK >LOG:  last completed transaction was at log time 2021-02-22 04:25:08.857086+03
< 2021-02-22 04:25:46.423 MSK >PANIC:  could not fsync file "base/57297/15693137.4": Bad file descriptor
< 2021-02-22 04:25:46.496 MSK >LOG:  shutdown at recovery target
< 2021-02-22 04:25:46.496 MSK >LOG:  abnormal database system shutdown
< 2021-02-22 04:25:46.516 MSK >LOG:  database system is shut down
oom killer?
источник

LK

L K in PostgreSQL + 1C + Linux
На windows?
источник

JS

Juriy Strashnov in PostgreSQL + 1C + Linux
а почему нет-то, он там тоже есть
источник

JS

Juriy Strashnov in PostgreSQL + 1C + Linux
но, конечно, может и что-то другое быть разумеется
источник

СГ

Сергей Голод... in PostgreSQL + 1C + Linux
Alkalisk
из 4х дисков Samsung SSD EVO 860 собран zfs pool
и даже для ссд будет ускорение от перевода на tmpfs. латенси в любом случае ниже. Не удалось проверить?
источник

СГ

Сергей Голод... in PostgreSQL + 1C + Linux
L K
Знатоки подскажите pls что может быть?
pg_probackup спасает, но стало часто.
>DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.182 MSK >HINT:  In a moment you should be able to reconnect to the database and repeat your command.
< 2021-02-22 04:25:09.190 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.190 MSK >DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.190 MSK >HINT:  In a moment you should be able to reconnect to the da< 2021-02-22 04:25:09.146 MSK >PANIC:  could not fsync file "base/57297/15693139": Bad file descriptor
< 2021-02-22 04:25:09.173 MSK >LOG:  checkpointer process (PID 3808) exited with exit code 3
< 2021-02-22 04:25:09.173 MSK >LOG:  terminating any other active server processes
< 2021-02-22 04:25:09.173 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.173 MSK >DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
< 2021-02-22 04:25:09.173 MSK >HINT:  In a moment you should be able to reconnect to the database and repeat your command.
< 2021-02-22 04:25:09.182 MSK >WARNING:  terminating connection because of crash of another server process
< 2021-02-22 04:25:09.182 MSK tabase and repeat your command.
< 2021-02-22 04:25:09.282 MSK >LOG:  all server processes terminated; reinitializing
< 2021-02-22 04:25:09.351 MSK >LOG:  database system was interrupted; last known up at 2021-02-22 04:24:20 MSK
< 2021-02-22 04:25:29.927 MSK >LOG:  could not fsync file "./base/57297/15693137.4": Bad file descriptor
< 2021-02-22 04:25:29.963 MSK >LOG:  could not fsync file "./base/57297/15693139": Bad file descriptor
< 2021-02-22 04:25:30.127 MSK >LOG:  database system was not properly shut down; automatic recovery in progress
< 2021-02-22 04:25:30.191 MSK >LOG:  redo starts at 19B/DE036290
< 2021-02-22 04:25:36.699 MSK >LOG:  redo done at 19C/1D3FFE78
< 2021-02-22 04:25:36.699 MSK >LOG:  last completed transaction was at log time 2021-02-22 04:25:08.857086+03
< 2021-02-22 04:25:46.423 MSK >PANIC:  could not fsync file "base/57297/15693137.4": Bad file descriptor
< 2021-02-22 04:25:46.496 MSK >LOG:  shutdown at recovery target
< 2021-02-22 04:25:46.496 MSK >LOG:  abnormal database system shutdown
< 2021-02-22 04:25:46.516 MSK >LOG:  database system is shut down
ошибки диска/фс исключены?
источник

LK

L K in PostgreSQL + 1C + Linux
Не должны, новый SSD
источник

СГ

Сергей Голод... in PostgreSQL + 1C + Linux
L K
Не должны, новый SSD
ntfs? в системном журнале всё чисто?
источник

LK

L K in PostgreSQL + 1C + Linux
Да
источник