Unix Technical Forum

Re: Unregister Windows Service pg_ctl error

This is a discussion on Re: Unregister Windows Service pg_ctl error within the Pgsql General forums, part of the PostgreSQL category; --> > > You need administrative privileges to unregister a service. > Can't run > > it as user postgres. ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 08:52 AM
Magnus Hagander
 
Posts: n/a
Default Re: Unregister Windows Service pg_ctl error

> > You need administrative privileges to unregister a service.
> Can't run
> > it as user postgres.

>
> I did the same under "Administrator" but then I get an access
> violation error like:
>
> Unhandled exception at 0x77c478c0 in pg_ctl.exe: 0xC0000005:
> Access violation reading location 0x00000000.
>
> What am I dong wrong?


That's the bug I sent in a patch for just now,that Peter has applied.

The workaround until the next release is out is to specify the data
directory when you do unregister. E.g.
pg_ctl -D ../data unregister

You shouldn't need that, but due to the bug you get a crash if you
don't...

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 08:52 AM
Gevik babakhani
 
Posts: n/a
Default Re: Unregister Windows Service pg_ctl error

Thank you

> -----Original Message-----
> From: Magnus Hagander [mailto:mha@sollentuna.net]
> Sent: Saturday, January 14, 2006 6:16 PM
> To: Gevik
> Cc: pgsql-general@postgresql.org
> Subject: RE: [GENERAL] Unregister Windows Service pg_ctl error
>
> > > You need administrative privileges to unregister a service.

> > Can't run
> > > it as user postgres.

> >
> > I did the same under "Administrator" but then I get an access
> > violation error like:
> >
> > Unhandled exception at 0x77c478c0 in pg_ctl.exe: 0xC0000005:
> > Access violation reading location 0x00000000.
> >
> > What am I dong wrong?

>
> That's the bug I sent in a patch for just now,that Peter has applied.
>
> The workaround until the next release is out is to specify the data
> directory when you do unregister. E.g.
> pg_ctl -D ../data unregister
>
> You shouldn't need that, but due to the bug you get a crash if you
> don't...
>
> //Magnus




---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:59 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com