Skip site navigation (1) Skip section navigation (2)

Re: pg_ctl vs. Windows locking

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: pg_ctl vs. Windows locking
Date: 2004-06-13 23:44:58
Message-ID: 200406132344.i5DNiw025070@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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 on restart - 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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2004-06-13 23:57:18
Subject: Re: [pgsql-hackers-win32] [PATCHES] Compiling libpq with VisualC
Previous:From: pgsqlDate: 2004-06-13 23:17:49
Subject: Re: [PATCHES] Compiling libpq with VisualC

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group