473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Problem with Windows PostgreSQL 8.1 service

I have Windows XP SP2 with PostgreSQL version 8.1.0 installed.

This has worked fine for me for many months.

When I restarted the computer to day, the PostgreSQL service had disapperared.

I went back to a restore point for the machine and once more the PostgreSQL service came up ine the list of services, but it was not started at reboot.

When I try to start the service manually it closes down immediately and I get a cryptic message from Windows that some services automatically closes down when they are not busy doing something.

I have worked with a database shema for more than a week and now I have lost my work if I cannot restart the service - PLEASE HELP - someone

Regards

Trond
Apr 3 '07 #1
7 47768
michaelb
534 Expert 512MB
Welcome to the Forum!

Did you look at the database log for any relevant messages?

And check out this link, see if you have the same problem...
Apr 3 '07 #2
I checked out the link you gave me.

I have installed Postgres correctly, infact I have installed 8.1 on several PC's and have not experienced the problem on any of these.

I have tried to look around using Google and have seen the tip about deleting the postmaster pid file - it did not work for me.

Regards

Trond
Apr 4 '07 #3
michaelb
534 Expert 512MB
Thanks for the update.
Did you have a chance to look at the database log file?
Are there any relevant messages in the Windows Event Log?
Apr 4 '07 #4
Hi,
I could not get anything from the log files. Maybe an expert can. But I have figured out something else.

I have had this problem on two of my PC's and on both these machine I have runned a program called RegClean that the producer says is very good for cleaning the registry.

When I looked into the "log-file" (a reg file) that RegClean produced there is a reference to the start-up service of PostgreSQL - and after rebooting the machine - PostGreSQL service was gone on both machines.

I suspect RegClean is the reason and I will be very reluctant to use this product in the future.

I send an email to RegClean support service and got an "answer" that did me no good.

Luckily it was test machines and now I have used some hours to reconstruct the shema of the database I am working with.

Problem solved - in a way ...

Regards

Trond
Apr 10 '07 #5
michaelb
534 Expert 512MB
I actually thought that you could've lost the service auto-startup option, but I wasn't quite sure whether this alone could cause problems because you noted

>> When I try to start the service manually it closes down immediately.

In any case, thank you very much for update, this may help other folks in the future.

P.S. I also had a bitter experience with some registry cleaners, and I grew very skeptical about them; I never let them do anything without first looking carefully at what they flagged as errors.
Apr 10 '07 #6
masdi2t
37
I have Windows XP SP2 with PostgreSQL version 8.1.0 installed.

This has worked fine for me for many months.

When I restarted the computer to day, the PostgreSQL service had disapperared.

I went back to a restore point for the machine and once more the PostgreSQL service came up ine the list of services, but it was not started at reboot.

When I try to start the service manually it closes down immediately and I get a cryptic message from Windows that some services automatically closes down when they are not busy doing something.

I have worked with a database shema for more than a week and now I have lost my work if I cannot restart the service - PLEASE HELP - someone

Regards

Trond
if the only problem is your postgres service then u can create your new postgres service. use pg_ctl

C:> pg_ctl register -N service_name -U os_user -P os_user_password -D data_directory

ex:
C:> pg_ctl register -N my_pg8.0 -U pgUser -P pgPasswd -D "D:\Data\pg8.0"
Apr 13 '07 #7
Thank you, Trond. Your comment turned out to be very useful for me. After reimaging my laptop I had terrible time installing PostgreSQL 8.4. When I tried installing from scratch, the data dir always was empty regardless what I did and (I do have Administrator privileges on this machine). When I tried to copy data dir from my backup, it did not create the windows service.
Cleaning and rebooting did not help.

Finally, I cleaned postgresql related entries from the registry, change security settings to "Full Control" on C:\Program Files\PostgreSql and all its subfolders (8.4\data), ran one-click installer postgresql-8.4.6-1-windows.exe. The installation process did not complain, the registry entries for PostgreSQL were created by the service was not, so I had to create service manually as Trond suggested earlier:

C:\Program Files\PostgreSQL\8.4\bin>pg_ctl register -N postgresql-8.4 -U postgres -P<my_password> -D "C:\Program Files\PostgreSQL\8.4\data"
and it worked!
Dec 18 '10 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dermot O'Loughlin | last post by:
I am trying to install a dotnet application using it's websetup msi dotnet application. I am getting the following error: The Windows Installer Service could not be accessed. This can occur if...
1
by: Simon Chester | last post by:
Hello! Can anyone help me with this problem?... I have developed an ASP.NET (version 1.1) application which I have deployed to a number of webservers. The web application works fine on Windows...
3
by: Netto | last post by:
Hi all,... I'd like to know where can I get information about what is happening to postgresql so it can't be started... all I get is: Starting postgresql service: ...
4
by: hogcods | last post by:
I'm having a strange problem with a service I developed. After installing the service on the target machine, I'm trying to start it using the Services admin window. I get the "Windows is starting"...
5
by: Andrea Vincenzi | last post by:
Help me please, I'm totally stuck! My Visual Studio 2003 debugger stopped working after I installed Windows XP Service Pack 2. Here is what happens (with any project, even a "Hello, world"...
3
by: Alejandro D. Burne | last post by:
Sorry, but no reply on pgsql-ports@postgresql.org. ---------- Forwarded message ---------- From: Alejandro D. Burne <alejandro.dburne@gmail.com> Date: Mon, 15 Nov 2004 15:00:58 +0100 Subject:...
3
by: Ahmad Jalil Qarshi | last post by:
Hi! I am developing an application in C# as a windows NT Service. This application needs to check for eventlog using EventLog.Exists("System") But unfortunately it generates exception...
8
by: Todd Jaspers | last post by:
Hey guys, I've written a fairly simple Windows C# Application using Visual Studio 2005. I have to manually run it, but I would prefer to have it run on it's own, as if it was a Windows NT...
2
by: svchosthunter | last post by:
I m working on a web project and I need do file content searching on DOC and PDF . Due to some reason I cant use windows indexing service How I can do it with out crawling each and every...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.