pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedSuggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
4+ messages / 4 participants
[nested] [flat]
* Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
@ 2019-01-24 09:04 rodrigo_de_carlos@yahoo.com
2019-01-24 12:25 ` Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) Francisco Olarte <folarte@peoplecall.com>
0 siblings, 1 reply; 4+ messages in thread
From: rodrigo_de_carlos@yahoo.com @ 2019-01-24 09:04 UTC (permalink / raw)
To: pgsql-bugs
Hi
I used the \watch option in psql and couldn't stop the loop until I found
the way* using ctrl-c. I am new to programming, and perhaps using ctrl-c is
standard practice, but in a future manual perhaps you should replace the
text below 'until interrupted' with 'until interrupted (using ctrl-c)'.
Regards, Rodrigo
PostgreSQL 11.1 Documentation, page 1922:
*
https://www.depesz.com/2013/04/07/waiting-for-9-3-add-watch-sec-command-to-p
sql/
---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
Attachments:
image003.jpg (image/jpeg, 17.9K) download
view image
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
2019-01-24 09:04 Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) rodrigo_de_carlos@yahoo.com
@ 2019-01-24 12:25 ` Francisco Olarte <folarte@peoplecall.com>
2019-01-24 15:03 ` Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Francisco Olarte @ 2019-01-24 12:25 UTC (permalink / raw)
To: rodrigo_de_carlos@yahoo.com; +Cc: pgsql-bugs
On Thu, Jan 24, 2019 at 10:33 AM <rodrigo_de_carlos@yahoo.com> wrote:
> I used the \watch option in psql and couldn’t stop the loop until I found the way* using ctrl-c. I am new to programming, and perhaps using ctrl-c is standard practice, but in a future manual perhaps you should replace the text below ‘until interrupted’ with ‘until interrupted (using ctrl-c)’.
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.
I haven't read the relevant sources, but my bet is psql is catching
int in *ix to do that ( it does it for other things ).
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.
That ( knowing how to interrput things ) is not a programming, but a
basic OS - user issue.
Francisco Olarte.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
2019-01-24 09:04 Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) rodrigo_de_carlos@yahoo.com
2019-01-24 12:25 ` Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) Francisco Olarte <folarte@peoplecall.com>
@ 2019-01-24 15:03 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-01-28 20:32 ` Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2019-01-24 15:03 UTC (permalink / raw)
To: Francisco Olarte <folarte@peoplecall.com>; +Cc: rodrigo_de_carlos@yahoo.com; pgsql-bugs
Francisco Olarte <folarte@peoplecall.com> writes:
> On Thu, Jan 24, 2019 at 10:33 AM <rodrigo_de_carlos@yahoo.com> wrote:
>> I used the \watch option in psql and couldn’t stop the loop until I found the way* using ctrl-c. I am new to programming, and perhaps using ctrl-c is standard practice, but in a future manual perhaps you should replace the text below ‘until interrupted’ with ‘until interrupted (using ctrl-c)’.
> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation)
2019-01-24 09:04 Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) rodrigo_de_carlos@yahoo.com
2019-01-24 12:25 ` Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) Francisco Olarte <folarte@peoplecall.com>
2019-01-24 15:03 ` Re: Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) Tom Lane <tgl@sss.pgh.pa.us>
@ 2019-01-28 20:32 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Momjian @ 2019-01-28 20:32 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Francisco Olarte <folarte@peoplecall.com>; rodrigo_de_carlos@yahoo.com; pgsql-bugs
On Thu, Jan 24, 2019 at 10:03:12AM -0500, Tom Lane wrote:
> Francisco Olarte <folarte@peoplecall.com> writes:
> > On Thu, Jan 24, 2019 at 10:33 AM <rodrigo_de_carlos@yahoo.com> wrote:
> >> I used the \watch option in psql and couldn’t stop the loop until I found the way* using ctrl-c. I am new to programming, and perhaps using ctrl-c is standard practice, but in a future manual perhaps you should replace the text below ‘until interrupted’ with ‘until interrupted (using ctrl-c)’.
>
> > 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.
Well, in psql we ended up just suggesting the likely default for exiting
psql:
#ifndef WIN32
puts(_("Use control-D to quit."));
#else
puts(_("Use control-C to quit."));
#endif
Not sure if we could do the same thing here.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2019-01-28 20:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-24 09:04 Suggestion: include interruption method for \watch option (page 1922, PostgreSQL 11.1 Documentation) rodrigo_de_carlos@yahoo.com
2019-01-24 12:25 ` Francisco Olarte <folarte@peoplecall.com>
2019-01-24 15:03 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-01-28 20:32 ` Bruce Momjian <bruce@momjian.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox