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

Re: [PATCHES] Fix for running from admin account on win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>,<pgsql-patches(at)postgresql(dot)org>
Subject: Re: [PATCHES] Fix for running from admin account on win32
Date: 2006-02-03 15:16:16
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE6C7FA9@algol.sollentuna.se (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
You'll still need to run the postmaster frmo pg_ctl to get the "run as
admin" part. The only part that could be moved is the Job Object for
management. And you're normally not going to need that one when you're
not running as a service. Maybe sometimes, but I doubt it's worth it. If
we could solve the run-as-admin inside the postmaster it might be
different, but AFAICS we can't.

//Magnus
 

> -----Original Message-----
> From: Bruce Momjian [mailto:pgman(at)candle(dot)pha(dot)pa(dot)us] 
> 
> 
> Where are we on this patch?
> 
> I am thinking it should be in the most logical place, rather 
> than in pg_ctl.  One call isn't a big deal, especially if you 
> can run the postmaster without using pg_ctl.
> 
> --------------------------------------------------------------
> -------------
> 
> Magnus Hagander wrote:
> > > > If the job object code is moved to the postmaster, it'll
> > > work when not
> > > > running as a service as well.
> > > 
> > > I'd just as soon keep all that Windows-specific cruft in pg_ctl.
> > > So I think the way you've got it set up is fine.
> > 
> > Well, it'd all be localised to the backend/port/win32 directory of 
> > course, except for a single call - where there is already "windows 
> > cruft".
> > 
> > But. I see your point. And the  vast majority of production 
> > installations run as service anyway. So I won't spend any 
> time making 
> > those changes, I'll leave what's on -patches now.
> > 
> > //Magnus
> > 
> > ---------------------------(end of 
> > broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
> > 
> 
> -- 
>   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
> 

Responses

pgsql-hackers by date

Next:From: Mark WoodwardDate: 2006-02-03 15:23:06
Subject: Re: Multiple logical databases
Previous:From: Peter EisentrautDate: 2006-02-03 15:06:02
Subject: Re: Multiple logical databases

pgsql-patches by date

Next:From: Mark WoodwardDate: 2006-02-03 15:23:06
Subject: Re: Multiple logical databases
Previous:From: Peter EisentrautDate: 2006-02-03 15:06:02
Subject: Re: Multiple logical databases

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