Re: using pg_ctl over ssh hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sbob <sbob@xxxxxxxxxxxxxxxxxxxxx> writes:
> I am wanting to run pg_ctl as a command over ssh, however when I pass 
> start it hangs until I do a Ctl-C

> $ ssh -T postgres@${node3} "/usr/pgsql-14/bin/pg_ctl -D 
> /var/lib/pgsql/14/data start"

If you don't specify a log file (-l option to pg_ctl) then the
postmaster's stdout doesn't get dissociated from the calling terminal,
which likely explains why ssh doesn't think the session is done.

			regards, tom lane





[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux