David Schnur <dnschnur(at)gmail(dot)com> writes:
> I develop an app that uses a back-end Postgres database, currently 8.3.9.
> The database is started when the app starts up, and stopped when it shuts
> down. Shutdown uses pg_ctl with -m fast, and waits two minutes for the
> process to complete. If it doesn't, it tries -m immediate, and waits two
> more minutes before logging an error and giving up.
Hm, does it shut down properly if you use -m immediate immediately
instead of trying fast first?
regards, tom lane