Re: pg_ctl vs. Windows locking - Mailing list pgsql-hackers-win32

From Bruce Momjian
Subject Re: pg_ctl vs. Windows locking
Date
Msg-id 200406132344.i5DNiw025070@candle.pha.pa.us
Whole thread Raw
In response to pg_ctl vs. Windows locking  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: pg_ctl vs. Windows locking  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers-win32
Good report.  Would you check to see if a sleep or loop checking if the
file is unused would help?

---------------------------------------------------------------------------

Andrew Dunstan wrote:
>
> pg_ctl seems to be working for Windows now, except that there are occasional Windows file locking issues, especially
onrestart - see below. 
>
> cheers
>
> andrew
>
>
> C:\msys\1.0\local\pgsql>bin\pg_ctl -D data -l logfile restart
> waiting for postmaster to shut down....done
> postmaster stopped
> postmaster starting
>
> C:\msys\1.0\local\pgsql>
> C:\msys\1.0\local\pgsql>
> C:\msys\1.0\local\pgsql>
> C:\msys\1.0\local\pgsql>
> C:\msys\1.0\local\pgsql>bin\pg_ctl -D data -l logfile restart
> waiting for postmaster to shut down....done
> postmaster stopped
> The process cannot access the file because it is being used by another process.
> Unable to run the postmaster binary
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
>                http://archives.postgresql.org
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-hackers-win32 by date:

Previous
From: Andrew Dunstan
Date:
Subject: pg_ctl vs. Windows locking
Next
From: "Magnus Hagander"
Date:
Subject: Re: Installer