Re: pg_regress not waiting for postmaster to stop - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: pg_regress not waiting for postmaster to stop
Date
Msg-id 55846ABF.5020508@dunslane.net
Whole thread Raw
In response to pg_regress not waiting for postmaster to stop  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 06/19/2015 02:33 AM, Michael Paquier wrote:
> Hi all,
>
> In pg_regress.c, there is the following code:
> static void
> stop_postmaster(void)
> {
>          if (postmaster_running)
>          {
>                  /* We use pg_ctl to issue the kill and wait for stop */
>                  char            buf[MAXPGPATH * 2];
>                  int                     r;
>
>                  /* On Windows, system() seems not to force fflush, so... */
>                  fflush(stdout);
>                  fflush(stderr);
>
>                  snprintf(buf, sizeof(buf),
>                                   "\"%s%spg_ctl\" stop -D \"%s/data\"
> -w -s -m fast",
>                                   bindir ? bindir : "",
>                                   bindir ? "/" : "",
>                                   temp_instance);
>
> Except if I am missing something, the comment mentions that we should
> wait for the stop but there is no -w switch in the command of pg_ctl.
> Doesn't the patch attached make sense?



-w is the default for stop.

So the patch shouldn't make any difference.

cheers

andrew




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgbench - allow backslash-continuations in custom scripts
Next
From: Alvaro Herrera
Date:
Subject: Re: The real reason why TAP testing isn't ready for prime time