I have difficulty to stop postgres process in solaris 10 prior to upgrade the version.
The process keep coming back even I kill with -9.
I've done pg_ctl stop -W -D /location/to/data/ -m immediate but shutdown process keep failing.
From log:
LOG: database system was interrupted at 2021-07-08 20:00:35 WIT
LOG: checkpoint record is at 21/59607654
LOG: redo record is at 21/59607654; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/127808448; next OID: 1355215
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system was not properly shut down; automatic recovery in progress
LOG: record with zero length at 21/5960769C
LOG: redo is not required
LOG: database system is ready
LOG: background writer process (PID 27107) was terminated by signal 9
LOG: terminating any other active server processes
LOG: all server processes terminated; reinitializing
LOG: received smart shutdown request
LOG: database system was interrupted at 2021-07-08 21:47:51 WIT
LOG: checkpoint record is at 21/5960769C
LOG: redo record is at 21/5960769C; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/127808448; next OID: 1355215
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system was not properly shut down; automatic recovery in progress
LOG: record with zero length at 21/596076E4
LOG: redo is not required
LOG: database system is ready
LOG: shutting down
LOG: database system is shut down
LOG: database system was shut down at 2021-07-08 21:48:09 WIT
LOG: checkpoint record is at 21/5960772C
LOG: redo record is at 21/5960772C; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 0/127808448; next OID: 1355215
LOG: next MultiXactId: 1; next MultiXactOffset: 0
LOG: database system is ready
It seems have autostart process but I can't find it.