Laurette Cisneros <laurette(at)nextbus(dot)com> writes:
> When I do a shutdown:
> $pgpath/bin/pg_ctl -D $datadir -m fast stop
> the server will not completely shutdown.
Hm. -m fast tells the postmaster to send SIGTERM to all the existing
backends, and then quit when all the backends have quit. So your
problem is that one or more backend processes isn't exiting in a timely
fashion after receiving SIGTERM. It would be useful to see what these
backends are doing. Can you attach to each one with gdb and get a stack
trace?
regards, tom lane