Re: postgresql on windows 2000

From: raj_14_11(at)rec-all(dot)com
To: Michael_Godshall(at)gmachs(dot)com
Cc: pgsql-cygwin(at)postgresql(dot)org, jason(at)tishler(dot)net
Subject: Re: postgresql on windows 2000
Date: 2003-09-10 05:38:13
Message-ID: Email.gptJa3fQfrg@rec-all.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

i checked the event viewer log also
it gives following message
"The description for Event ID ( 0 ) in Source ( postmaster ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: postmaster : PID 1924 : `postmaster' service stopped."

but i cannot make out anything from it.
>
>
><P><FONT SIZE=2>Check your Event Viewer-&gt; Application log.&nbsp; There might be more information about the error there.</FONT>
></P>
>
><P><FONT SIZE=2>Mike</FONT>
></P>
>
><P><FONT SIZE=2>-----Original Message-----</FONT>
><BR><FONT SIZE=2>From: raj_14_11(at)rec-all(dot)com [<A HREF="mailto:raj_14_11(at)rec-all(dot)com">mailto:raj_14_11(at)rec-all(dot)com</A>]</FONT>
><BR><FONT SIZE=2>Sent: Monday, September 08, 2003 11:45 PM</FONT>
><BR><FONT SIZE=2>To: jason(at)tishler(dot)net</FONT>
><BR><FONT SIZE=2>Cc: pgsql-cygwin(at)postgresql(dot)org; godsham(at)speakeasy(dot)net</FONT>
><BR><FONT SIZE=2>Subject: Re: [CYGWIN] postgresql on windows 2000</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>Hi</FONT>
><BR><FONT SIZE=2>i have tried all possibilities and followed all the instructions but when it comes to start postmaster i get this </FONT>
><BR><FONT SIZE=2>********************************************</FONT>
><BR><FONT SIZE=2>$ net start postmaster</FONT>
><BR><FONT SIZE=2>The postmaster service is starting.</FONT>
><BR><FONT SIZE=2>The postmaster service could not be started.</FONT>
></P>
>
><P><FONT SIZE=2>The service did not report an error.</FONT>
></P>
>
><P><FONT SIZE=2>More help is available by typing NET HELPMSG 3534.</FONT>
></P>
>
><P><FONT SIZE=2>$ NET HELPMSG 3534</FONT>
></P>
>
><P><FONT SIZE=2>The service did not report an error.</FONT>
></P>
><BR>
>
><P><FONT SIZE=2>EXPLANATION</FONT>
></P>
>
><P><FONT SIZE=2>The service did not report an error.</FONT>
></P>
>
><P><FONT SIZE=2>ACTION</FONT>
></P>
>
><P><FONT SIZE=2>Try the task later. If the problem persists, contact your network</FONT>
><BR><FONT SIZE=2>administrator.</FONT>
><BR><FONT SIZE=2>********************************************</FONT>
><BR><FONT SIZE=2>can anybody help me ?</FONT>
></P>
>
><P><FONT SIZE=2>&gt;Mike,</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;Please keep your replies on-list.</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;On Fri, Sep 05, 2003 at 09:10:05PM -0500, Mike G wrote:</FONT>
><BR><FONT SIZE=2>&gt;&gt; It sounds like the cygipc-daemon is running the wrong version.&nbsp; The</FONT>
><BR><FONT SIZE=2>&gt;&gt; instructions located in the</FONT>
><BR><FONT SIZE=2>&gt;&gt; readme(<A HREF="http://www.tishler.net/jason/software/postgresql/postgresql-7.3.3.README" TARGET="_blank">http://www.tishler.net/jason/software/postgresql/postgresql-7.3.3.README</A>)</FONT>
><BR><FONT SIZE=2>&gt;&gt; need to be updated.</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;Have you seen the following?</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp; <A HREF="http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README" TARGET="_blank">http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README</A></FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;&gt; This is what it should read now:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; The following is the NT services Cygwin PostgreSQL installation</FONT>
><BR><FONT SIZE=2>&gt;&gt; procedure</FONT>
><BR><FONT SIZE=2>&gt;&gt; (with footnotes designated by &quot;[n]&quot;):</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 1. Install the cygipc ipc-daemon as a NT service:</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; A)If you are upgrading from a version prior to 7.3.4-2</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; shutdown the postmaster and cygipc services.</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; close the service manager screen.</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # ipc-daemon --remove-as-service</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # ipc-daemon2 --install-as-service</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Next skip to step 4.</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; B)If it is a fresh install</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # ipc-daemon2 --install-as-service</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 2. Create the &quot;postgres&quot; user account:</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # net user postgres $password /add /fullname:postgres</FONT>
><BR><FONT SIZE=2>&gt;&gt; /comment:'PostgreSQL user account' /homedir:&quot;$(cygpath -w</FONT>
><BR><FONT SIZE=2>&gt;&gt; /home/postgres)&quot; # [11]</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # mkpasswd -l -u postgres &gt;&gt;/etc/passwd</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 3. Grant the &quot;postgres&quot; user the &quot;Log on as a service&quot; user right:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # cmd /c secpol.msc # [3] [4] [5] [12]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 4. Install postmaster as a NT service:</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; A)If you are upgrading from a version prior to 7.3.4-2</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # cygrunsrv --remove postmaster</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # cygrunsrv --install postmaster --path /usr/bin/postmaster --args</FONT>
><BR><FONT SIZE=2>&gt;&gt; &quot;-D /usr/share/postgresql/data -i&quot; --dep ipc-daemon --termsig INT --user</FONT>
><BR><FONT SIZE=2>&gt;&gt; postgres --shutdown # [6]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Skip to step 7.</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; B)If you are doing a fresh install:</FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # cygrunsrv --install postmaster --path /usr/bin/postmaster --args</FONT>
><BR><FONT SIZE=2>&gt;&gt; &quot;-D /usr/share/postgresql/data -i&quot; --dep ipc-daemon --termsig INT --user</FONT>
><BR><FONT SIZE=2>&gt;&gt; postgres --shutdown # [6]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 5. Create the PostgreSQL data directory:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # mkdir /usr/share/postgresql/data</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 6. Change ownership of the PostgreSQL data directory:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # chown postgres /usr/share/postgresql/data # [10]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 7. Start the cygipc ipc-daemon:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # net start ipc-daemon2 # [7]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp; **If upgrading skip to step 9.</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 8. Initialize PostgreSQL (*when running under the &quot;postgres&quot; account*):</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; $ initdb -D /usr/share/postgresql/data</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 9. Start postmaster:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # net start postmaster # [7]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; 10. Connect to PostgreSQL:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; # psql -U postgres template1 # [8] [9]</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; The following are the notes to the above:</FONT>
><BR><FONT SIZE=2>&gt;&gt; </FONT>
><BR><FONT SIZE=2>&gt;&gt; [snip]</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;Sorry, but I feel that my README is already too cluttered.&nbsp; However, I</FONT>
><BR><FONT SIZE=2>&gt;will add an issue regarding upgrading from 7.3.4-1 or earlier.</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;Thanks,</FONT>
><BR><FONT SIZE=2>&gt;Jason</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;-- </FONT>
><BR><FONT SIZE=2>&gt;PGP/GPG Key: <A HREF="http://www.tishler.net/jason/pubkey.asc" TARGET="_blank">http://www.tishler.net/jason/pubkey.asc</A> or key servers</FONT>
><BR><FONT SIZE=2>&gt;Fingerprint: 7A73 1405 7F2B E669 C19D&nbsp; 8784 1AFD E4CC ECF4 8EF6</FONT>
><BR><FONT SIZE=2>&gt;</FONT>
><BR><FONT SIZE=2>&gt;---------------------------(end of broadcast)---------------------------</FONT>
><BR><FONT SIZE=2>&gt;TIP 2: you can get off all lists at once with the unregister command</FONT>
><BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp; (send &quot;unregister YourEmailAddressHere&quot; to majordomo(at)postgresql(dot)org)</FONT>
></P>
>
><P><FONT SIZE=2>---------------------------------------------</FONT>
><BR><FONT SIZE=2>WWW.rec-all.com - a community of all the RECs</FONT>
></P>
>
><P><FONT SIZE=2>---------------------------(end of broadcast)---------------------------</FONT>
><BR><FONT SIZE=2>TIP 8: explain analyze is your friend</FONT>
></P>
>

---------------------------------------------
WWW.rec-all.com - a community of all the RECs

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2003-09-10 11:52:20 Re: postgresql on windows 2000
Previous Message Godshall Michael 2003-09-09 17:33:25 Re: postgresql on windows 2000