Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgXN-0008LX-Fb for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jan 2019 15:03:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gmgXM-0000zf-67 for pgsql-bugs@arkaria.postgresql.org; Thu, 24 Jan 2019 15:03:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgXL-0000zX-T6 for pgsql-bugs@lists.postgresql.org; Thu, 24 Jan 2019 15:03:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gmgXB-0006ER-Nw for pgsql-bugs@postgresql.org; Thu, 24 Jan 2019 15:03:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0OF3Cjb017022; Thu, 24 Jan 2019 10:03:12 -0500 From: Tom Lane To: Francisco Olarte cc: rodrigo_de_carlos@yahoo.com, pgsql-bugs@postgresql.org Subject: Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) In-reply-to: References: <007901d4b3c3$d6544ab0$82fce010$@yahoo.com> Comments: In-reply-to Francisco Olarte message dated "Thu, 24 Jan 2019 13:25:16 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <17020.1548342192.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 24 Jan 2019 10:03:12 -0500 Message-ID: <17021.1548342192@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Francisco Olarte writes: > On Thu, Jan 24, 2019 at 10:33 AM wrote: >> I used the \watch option in psql and couldn=E2=80=99t stop the loop unt= il I found the way* using ctrl-c. I am new to programming, and perhaps us= ing ctrl-c is standard practice, but in a future manual perhaps you should= replace the text below =E2=80=98until interrupted=E2=80=99 with =E2=80=98= until interrupted (using ctrl-c)=E2=80=99. > Ctrl-C, AFAIK, sends the INT(errupt) signal in *ix, which normally > stops looping things. That's the standard way to interrupt long > running commands, send them the interrupt signal. > IIRC windows does similar stuff, although I think Ctrl-break had to be > used, but I haven't used it since the dawn of the century. Yeah, the reason that the message doesn't already mention control-c is that the interrupt signal varies depending on platform (also, it's possible to remap it to some other key, on most platforms). In the end we expect you to know that much about whatever environment you're using. regards, tom lane