I am using postgres with generic pool. My app is getting crashed when there is a connection termination issue. How i can address this ? Please find below the stack trace of the crash.
WARNING: terminating connection because of crash of another server process
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.
HINT: In a moment you should be able to reconnect to the database and repeat your command.
events.js:160
throw er; // Unhandled 'error' event
^
Error
at Client._readError (/analytics-center/node_modules/pg-native/index.js:80:13)
at Client._read (/analytics-center/node_modules/pg-native/index.js:121:19)
at emitNone (events.js:86:13)
at PQ.emit (events.js:185:7)
terminating connection due to administrator command
Please help me with this. My app is in production.
I am using postgres with generic pool. My app is getting crashed when there is a connection termination issue. How i can address this ? Please find below the stack trace of the crash.
WARNING: terminating connection because of crash of another server process 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. HINT: In a moment you should be able to reconnect to the database and repeat your command. events.js:160 throw er; // Unhandled 'error' event ^
Error at Client._readError (/analytics-center/node_modules/pg-native/index.js:80:13) at Client._read (/analytics-center/node_modules/pg-native/index.js:121:19) at emitNone (events.js:86:13) at PQ.emit (events.js:185:7)
terminating connection due to administrator command
Please help me with this. My app is in production.
Thanks in advance