postgresql on windows 2000
postgresql on windows 2000
Hi, i am new to postgresql and trying to use postgresql on following configuration and getting the following error. ********************************************** Microsoft windows 2000 Version 5.0 (build 2195 : service pack 4) postgresql-7.3.4-2 cygwin 2.340.2.5 creating template1 database in /data/base/1... IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: Function not implemented ********************************************** Can you please help me to find a workaround so that it works successfully. regards, Rajesh --------------------------------------------- WWW.rec-all.com - a community of all the RECs
Re: postgresql on windows 2000
As I said before it is a mather of ipc-daemon - it has to be running if want to start postmaster, initdb etc... So you should open bash shell and write "ipc-daemon &" > -----Original Message----- > From: pgsql-cygwin-owner@postgresql.org > [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of > raj_14_11@rec-all.com > Sent: Friday, September 05, 2003 9:06 AM > To: pgsql-cygwin@postgresql.org > Subject: [CYGWIN] postgresql on windows 2000 > > > Hi, > i am new to postgresql and trying to use postgresql on > following configuration and getting the following error. > ********************************************** > Microsoft windows 2000 > Version 5.0 (build 2195 : service pack 4) > postgresql-7.3.4-2 > cygwin 2.340.2.5 > > > creating template1 database in /data/base/1... > IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: > Function not implemented > > > ********************************************** > Can you please help me to find a workaround so that it works > successfully. > > > regards, > Rajesh > > --------------------------------------------- > WWW.rec-all.com - a community of all the RECs > > ---------------------------(end of > broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index > scan if your > joining column's datatypes do not match >
Re: postgresql on windows 2000
Probably it's a problem with cygwin1.dll. Ok., you should do something else - after executing ipc-daemon you should check if it was loaded (go to task manager and find ipc-daemon process). I don't think, that ipc-daemon was loaded correctly. > -----Original Message----- > From: raj_14_11@rec-all.com [mailto:raj_14_11@rec-all.com] > Sent: Friday, September 05, 2003 9:37 AM > To: newsy@lewczuk.com > Subject: Re:RE: [CYGWIN] postgresql on windows 2000 > > > after all installations when i start cygwin i get the > following message > "Your username or group hasn't been setup correctly. > This typically happens if you are a domain user > (cygwin does not automatically create /etc/passwd or > /etc/group for domain users)" > > than i run > "ipc-daemon &" command it returns me "[1] 1688" > after all this when i run "initdb -D /data" > i get the following error > "The files belonging to this database system will be owned by > user "rajesh". This user must also own the server process. > > The database cluster will be initialized with locale EN_US. > This locale setting will prevent the use of indexes for > pattern matching operations. If that is a concern, rerun > initdb with the collation order set to "C". For more > information see the Administrator's Guide. > > creating directory /data... ok > creating directory /data/base... ok > creating directory /data/global... ok > creating directory /data/pg_xlog... ok > creating directory /data/pg_clog... ok > creating template1 database in /data/base/1... > IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: > Function not implemented > > initdb failed. > Removing /data. > " > > >As I said before it is a mather of ipc-daemon - it has to be > running if > >want to start postmaster, initdb etc... So you should open > bash shell > >and write "ipc-daemon &" > > > >> -----Original Message----- > >> From: pgsql-cygwin-owner@postgresql.org > >> [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of > >> raj_14_11@rec-all.com > >> Sent: Friday, September 05, 2003 9:06 AM > >> To: pgsql-cygwin@postgresql.org > >> Subject: [CYGWIN] postgresql on windows 2000 > >> > >> > >> Hi, > >> i am new to postgresql and trying to use postgresql on > >> following configuration and getting the following error. > >> ********************************************** > >> Microsoft windows 2000 > >> Version 5.0 (build 2195 : service pack 4) > >> postgresql-7.3.4-2 > >> cygwin 2.340.2.5 > >> > >> > >> creating template1 database in /data/base/1... > >> IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: > >> Function not implemented > >> > >> > >> ********************************************** > >> Can you please help me to find a workaround so that it works > >> successfully. > >> > >> > >> regards, > >> Rajesh > >> > >> --------------------------------------------- > >> WWW.rec-all.com - a community of all the RECs > >> > >> ---------------------------(end of > >> broadcast)--------------------------- > >> TIP 9: the planner will ignore your desire to choose an index > >> scan if your > >> joining column's datatypes do not match > >> > > > > > > > > --------------------------------------------- > WWW.rec-all.com - a community of all the RECs >
Re: postgresql on windows 2000
Ok., now check if file called cygwin1.dll in windows/system or windows/system32 folder is the same which is in cygwin/bin folder... . > -----Original Message----- > From: raj_14_11@rec-all.com [mailto:raj_14_11@rec-all.com] > Sent: Friday, September 05, 2003 9:44 AM > To: newsy@lewczuk.com > Subject: Re:Re: [CYGWIN] postgresql on windows 2000 > > > ya its there in task manager with pid 600 > > >Probably it's a problem with cygwin1.dll. Ok., you should do > something > >else - after executing ipc-daemon you should check if it was > loaded (go > >to task manager and find ipc-daemon process). I don't think, that > >ipc-daemon was loaded correctly. > > > >> -----Original Message----- > >> From: raj_14_11@rec-all.com [mailto:raj_14_11@rec-all.com] > >> Sent: Friday, September 05, 2003 9:37 AM > >> To: newsy@lewczuk.com > >> Subject: Re:RE: [CYGWIN] postgresql on windows 2000 > >> > >> > >> after all installations when i start cygwin i get the > >> following message > >> "Your username or group hasn't been setup correctly. > >> This typically happens if you are a domain user > >> (cygwin does not automatically create /etc/passwd or > >> /etc/group for domain users)" > >> > >> than i run > >> "ipc-daemon &" command it returns me "[1] 1688" > >> after all this when i run "initdb -D /data" > >> i get the following error > >> "The files belonging to this database system will be owned by > >> user "rajesh". This user must also own the server process. > >> > >> The database cluster will be initialized with locale EN_US. > >> This locale setting will prevent the use of indexes for > >> pattern matching operations. If that is a concern, rerun > >> initdb with the collation order set to "C". For more > >> information see the Administrator's Guide. > >> > >> creating directory /data... ok > >> creating directory /data/base... ok > >> creating directory /data/global... ok > >> creating directory /data/pg_xlog... ok > >> creating directory /data/pg_clog... ok > >> creating template1 database in /data/base/1... > >> IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: > >> Function not implemented > >> > >> initdb failed. > >> Removing /data. > >> " > >> > >> >As I said before it is a mather of ipc-daemon - it has to be > >> running if > >> >want to start postmaster, initdb etc... So you should open > >> bash shell > >> >and write "ipc-daemon &" > >> > > >> >> -----Original Message----- > >> >> From: pgsql-cygwin-owner@postgresql.org > >> >> [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of > >> >> raj_14_11@rec-all.com > >> >> Sent: Friday, September 05, 2003 9:06 AM > >> >> To: pgsql-cygwin@postgresql.org > >> >> Subject: [CYGWIN] postgresql on windows 2000 > >> >> > >> >> > >> >> Hi, > >> >> i am new to postgresql and trying to use postgresql on > following > >> >> configuration and getting the following error. > >> >> ********************************************** > >> >> Microsoft windows 2000 > >> >> Version 5.0 (build 2195 : service pack 4) postgresql-7.3.4-2 > >> >> cygwin 2.340.2.5 > >> >> > >> >> > >> >> creating template1 database in /data/base/1... > >> >> IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: > >> >> Function not implemented > >> >> > >> >> > >> >> ********************************************** > >> >> Can you please help me to find a workaround so that it works > >> >> successfully. > >> >> > >> >> > >> >> regards, > >> >> Rajesh > >> >> > >> >> --------------------------------------------- > >> >> WWW.rec-all.com - a community of all the RECs > >> >> > >> >> ---------------------------(end of > >> >> broadcast)--------------------------- > >> >> TIP 9: the planner will ignore your desire to choose an index > >> >> scan if your > >> >> joining column's datatypes do not match > >> >> > >> > > >> > > >> > > >> > >> --------------------------------------------- > >> WWW.rec-all.com - a community of all the RECs > >> > > > > > > > > > >---------------------------(end of > >broadcast)--------------------------- > >TIP 9: the planner will ignore your desire to choose an > index scan if your > > joining column's datatypes do not match > > --------------------------------------------- > WWW.rec-all.com - a community of all the RECs >
Re: postgresql on windows 2000
On Fri, Sep 05, 2003 at 10:34:51AM +0100, Marek Lewczuk wrote:
> As I said before it is a mather of ipc-daemon - it has to be running
> if want to start postmaster, initdb etc... So you should open bash
> shell and write "ipc-daemon &"
The above is not quite correct. If Rajesh is using postgresql-7.3.4-2,
then he must install cypipc 2.01-2 and start ipc-daemon2.
> > -----Original Message-----
> > From: pgsql-cygwin-owner@postgresql.org
> > [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of
> > raj_14_11@rec-all.com
> > Sent: Friday, September 05, 2003 9:06 AM
> > To: pgsql-cygwin@postgresql.org
> > Subject: [CYGWIN] postgresql on windows 2000
> >
> > i am new to postgresql and trying to use postgresql on
> > following configuration and getting the following error.
> > **********************************************
> > Microsoft windows 2000
> > Version 5.0 (build 2195 : service pack 4)
> > postgresql-7.3.4-2
^^^^^^^
> > cygwin 2.340.2.5
> >
> > creating template1 database in /data/base/1...
> > IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed:
> > Function not implemented
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Re: postgresql on windows 2000
Exactly. Know I remember. > -----Original Message----- > From: Jason Tishler [mailto:jason@tishler.net] > Sent: Friday, September 05, 2003 1:18 PM > To: Marek Lewczuk > Cc: raj_14_11@rec-all.com; pgsql-cygwin@postgresql.org > Subject: Re: [CYGWIN] postgresql on windows 2000 > > > On Fri, Sep 05, 2003 at 10:34:51AM +0100, Marek Lewczuk wrote: > > As I said before it is a mather of ipc-daemon - it has to > be running > > if want to start postmaster, initdb etc... So you should open bash > > shell and write "ipc-daemon &" > > The above is not quite correct. If Rajesh is using > postgresql-7.3.4-2, then he must install cypipc 2.01-2 and > start ipc-daemon2. > > > > -----Original Message----- > > > From: pgsql-cygwin-owner@postgresql.org > > > [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of > > > raj_14_11@rec-all.com > > > Sent: Friday, September 05, 2003 9:06 AM > > > To: pgsql-cygwin@postgresql.org > > > Subject: [CYGWIN] postgresql on windows 2000 > > > > > > i am new to postgresql and trying to use postgresql on > > > following configuration and getting the following error. > > > ********************************************** > > > Microsoft windows 2000 > > > Version 5.0 (build 2195 : service pack 4) > > > postgresql-7.3.4-2 > ^^^^^^^ > > > cygwin 2.340.2.5 > > > > > > creating template1 database in /data/base/1... > > > IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: > > > Function not implemented > > Jason > > -- > PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers > Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 >
Re: postgresql on windows 2000
>
> Exactly. Know I remember.
I mean: Now I remember...!!! Mistakes happends...
>
> > -----Original Message-----
> > From: Jason Tishler [mailto:jason@tishler.net]
> > Sent: Friday, September 05, 2003 1:18 PM
> > To: Marek Lewczuk
> > Cc: raj_14_11@rec-all.com; pgsql-cygwin@postgresql.org
> > Subject: Re: [CYGWIN] postgresql on windows 2000
> >
> >
> > On Fri, Sep 05, 2003 at 10:34:51AM +0100, Marek Lewczuk wrote:
> > > As I said before it is a mather of ipc-daemon - it has to
> > be running
> > > if want to start postmaster, initdb etc... So you should open bash
> > > shell and write "ipc-daemon &"
> >
> > The above is not quite correct. If Rajesh is using
> > postgresql-7.3.4-2, then he must install cypipc 2.01-2 and
> > start ipc-daemon2.
> >
> > > > -----Original Message-----
> > > > From: pgsql-cygwin-owner@postgresql.org
> > > > [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of
> > > > raj_14_11@rec-all.com
> > > > Sent: Friday, September 05, 2003 9:06 AM
> > > > To: pgsql-cygwin@postgresql.org
> > > > Subject: [CYGWIN] postgresql on windows 2000
> > > >
> > > > i am new to postgresql and trying to use postgresql on
> following
> > > > configuration and getting the following error.
> > > > **********************************************
> > > > Microsoft windows 2000
> > > > Version 5.0 (build 2195 : service pack 4) postgresql-7.3.4-2
> > ^^^^^^^
> > > > cygwin 2.340.2.5
> > > >
> > > > creating template1 database in /data/base/1...
> > > > IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed:
> > > > Function not implemented
> >
> > Jason
> >
> > --
> > PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
> > Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
> >
>
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
http://www.postgresql.org/docs/faqs/FAQ.html
Re: postgresql on windows 2000
"cypipc 2.01-2" download comes with a patch also.how to apply that patch for cypipc 2.01-2? >> >> Exactly. Know I remember. > >I mean: Now I remember...!!! Mistakes happends... > >> >> > -----Original Message----- >> > From: Jason Tishler [mailto:jason@tishler.net] >> > Sent: Friday, September 05, 2003 1:18 PM >> > To: Marek Lewczuk >> > Cc: raj_14_11@rec-all.com; pgsql-cygwin@postgresql.org >> > Subject: Re: [CYGWIN] postgresql on windows 2000 >> > >> > >> > On Fri, Sep 05, 2003 at 10:34:51AM +0100, Marek Lewczuk wrote: >> > > As I said before it is a mather of ipc-daemon - it has to >> > be running >> > > if want to start postmaster, initdb etc... So you should open bash >> > > shell and write "ipc-daemon &" >> > >> > The above is not quite correct. If Rajesh is using >> > postgresql-7.3.4-2, then he must install cypipc 2.01-2 and >> > start ipc-daemon2. >> > >> > > > -----Original Message----- >> > > > From: pgsql-cygwin-owner@postgresql.org >> > > > [mailto:pgsql-cygwin-owner@postgresql.org] On Behalf Of >> > > > raj_14_11@rec-all.com >> > > > Sent: Friday, September 05, 2003 9:06 AM >> > > > To: pgsql-cygwin@postgresql.org >> > > > Subject: [CYGWIN] postgresql on windows 2000 >> > > > >> > > > i am new to postgresql and trying to use postgresql on >> following >> > > > configuration and getting the following error. >> > > > ********************************************** >> > > > Microsoft windows 2000 >> > > > Version 5.0 (build 2195 : service pack 4) postgresql-7.3.4-2 >> > ^^^^^^^ >> > > > cygwin 2.340.2.5 >> > > > >> > > > creating template1 database in /data/base/1... >> > > > IpcSemaphoreCreate: semget(key=1, num=17, 03600) failed: >> > > > Function not implemented >> > >> > Jason >> > >> > -- >> > PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers >> > Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 >> > >> >> >> >> >> ---------------------------(end of >> broadcast)--------------------------- >> TIP 5: Have you checked our extensive FAQ? >> > http://www.postgresql.org/docs/faqs/FAQ.html > > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) --------------------------------------------- WWW.rec-all.com - a community of all the RECs
Re: postgresql on windows 2000
Rajesh,
Please keep your replies on-list.
On Fri, Sep 05, 2003 at 07:45:14PM +0700, raj_14_11@rec-all.com wrote:
> Thx jason.
You are welcome.
> But one question "cygipc-2.00" comes with a patch also how to use that
> ??
Huh? Sorry, but I don't understand the above.
Please read the README:
http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Re: postgresql on windows 2000
Mike,
Please keep your replies on-list.
On Fri, Sep 05, 2003 at 09:10:05PM -0500, Mike G wrote:
> It sounds like the cygipc-daemon is running the wrong version. The
> instructions located in the
> readme(http://www.tishler.net/jason/software/postgresql/postgresql-7.3.3.README)
> need to be updated.
Have you seen the following?
http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README
> This is what it should read now:
>
> The following is the NT services Cygwin PostgreSQL installation
> procedure
> (with footnotes designated by "[n]"):
>
> 1. Install the cygipc ipc-daemon as a NT service:
> A)If you are upgrading from a version prior to 7.3.4-2
> shutdown the postmaster and cygipc services.
> close the service manager screen.
> # ipc-daemon --remove-as-service
> # ipc-daemon2 --install-as-service
>
> Next skip to step 4.
>
> B)If it is a fresh install
> # ipc-daemon2 --install-as-service
>
> 2. Create the "postgres" user account:
>
> # net user postgres $password /add /fullname:postgres
> /comment:'PostgreSQL user account' /homedir:"$(cygpath -w
> /home/postgres)" # [11]
> # mkpasswd -l -u postgres >>/etc/passwd
>
> 3. Grant the "postgres" user the "Log on as a service" user right:
>
> # cmd /c secpol.msc # [3] [4] [5] [12]
>
> 4. Install postmaster as a NT service:
> A)If you are upgrading from a version prior to 7.3.4-2
> # cygrunsrv --remove postmaster
> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args
> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
> postgres --shutdown # [6]
>
> Skip to step 7.
>
> B)If you are doing a fresh install:
> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args
> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
> postgres --shutdown # [6]
>
> 5. Create the PostgreSQL data directory:
>
> # mkdir /usr/share/postgresql/data
>
> 6. Change ownership of the PostgreSQL data directory:
>
> # chown postgres /usr/share/postgresql/data # [10]
>
> 7. Start the cygipc ipc-daemon:
>
> # net start ipc-daemon2 # [7]
>
> **If upgrading skip to step 9.
>
> 8. Initialize PostgreSQL (*when running under the "postgres" account*):
>
> $ initdb -D /usr/share/postgresql/data
>
> 9. Start postmaster:
>
> # net start postmaster # [7]
>
> 10. Connect to PostgreSQL:
>
> # psql -U postgres template1 # [8] [9]
>
> The following are the notes to the above:
>
> [snip]
Sorry, but I feel that my README is already too cluttered. However, I
will add an issue regarding upgrading from 7.3.4-1 or earlier.
Thanks,
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Re: postgresql on windows 2000
Hi i have tried all possibilities and followed all the instructions but when it comes to start postmaster i get this ******************************************** $ net start postmaster The postmaster service is starting. The postmaster service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. $ NET HELPMSG 3534 The service did not report an error. EXPLANATION The service did not report an error. ACTION Try the task later. If the problem persists, contact your network administrator. ******************************************** can anybody help me ? >Mike, > >Please keep your replies on-list. > >On Fri, Sep 05, 2003 at 09:10:05PM -0500, Mike G wrote: >> It sounds like the cygipc-daemon is running the wrong version. The >> instructions located in the >> readme(http://www.tishler.net/jason/software/postgresql/postgresql-7.3.3.README) >> need to be updated. > >Have you seen the following? > > http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README > >> This is what it should read now: >> >> The following is the NT services Cygwin PostgreSQL installation >> procedure >> (with footnotes designated by "[n]"): >> >> 1. Install the cygipc ipc-daemon as a NT service: >> A)If you are upgrading from a version prior to 7.3.4-2 >> shutdown the postmaster and cygipc services. >> close the service manager screen. >> # ipc-daemon --remove-as-service >> # ipc-daemon2 --install-as-service >> >> Next skip to step 4. >> >> B)If it is a fresh install >> # ipc-daemon2 --install-as-service >> >> 2. Create the "postgres" user account: >> >> # net user postgres $password /add /fullname:postgres >> /comment:'PostgreSQL user account' /homedir:"$(cygpath -w >> /home/postgres)" # [11] >> # mkpasswd -l -u postgres >>/etc/passwd >> >> 3. Grant the "postgres" user the "Log on as a service" user right: >> >> # cmd /c secpol.msc # [3] [4] [5] [12] >> >> 4. Install postmaster as a NT service: >> A)If you are upgrading from a version prior to 7.3.4-2 >> # cygrunsrv --remove postmaster >> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args >> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user >> postgres --shutdown # [6] >> >> Skip to step 7. >> >> B)If you are doing a fresh install: >> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args >> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user >> postgres --shutdown # [6] >> >> 5. Create the PostgreSQL data directory: >> >> # mkdir /usr/share/postgresql/data >> >> 6. Change ownership of the PostgreSQL data directory: >> >> # chown postgres /usr/share/postgresql/data # [10] >> >> 7. Start the cygipc ipc-daemon: >> >> # net start ipc-daemon2 # [7] >> >> **If upgrading skip to step 9. >> >> 8. Initialize PostgreSQL (*when running under the "postgres" account*): >> >> $ initdb -D /usr/share/postgresql/data >> >> 9. Start postmaster: >> >> # net start postmaster # [7] >> >> 10. Connect to PostgreSQL: >> >> # psql -U postgres template1 # [8] [9] >> >> The following are the notes to the above: >> >> [snip] > >Sorry, but I feel that my README is already too cluttered. However, I >will add an issue regarding upgrading from 7.3.4-1 or earlier. > >Thanks, >Jason > >-- >PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers >Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) --------------------------------------------- WWW.rec-all.com - a community of all the RECs
Re: postgresql on windows 2000
Check your Event Viewer-> Application log. There might be more information about the error there.
Mike
-----Original Message-----
From: raj_14_11@rec-all.com [mailto:raj_14_11@rec-all.com]
Sent: Monday, September 08, 2003 11:45 PM
To: jason@tishler.net
Cc: pgsql-cygwin@postgresql.org; godsham@speakeasy.net
Subject: Re: [CYGWIN] postgresql on windows 2000
Hi
i have tried all possibilities and followed all the instructions but when it comes to start postmaster i get this
********************************************
$ net start postmaster
The postmaster service is starting.
The postmaster service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
$ NET HELPMSG 3534
The service did not report an error.
EXPLANATION
The service did not report an error.
ACTION
Try the task later. If the problem persists, contact your network
administrator.
********************************************
can anybody help me ?
>Mike,
>
>Please keep your replies on-list.
>
>On Fri, Sep 05, 2003 at 09:10:05PM -0500, Mike G wrote:
>> It sounds like the cygipc-daemon is running the wrong version. The
>> instructions located in the
>> readme(http://www.tishler.net/jason/software/postgresql/postgresql-7.3.3.README)
>> need to be updated.
>
>Have you seen the following?
>
> http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README
>
>> This is what it should read now:
>>
>> The following is the NT services Cygwin PostgreSQL installation
>> procedure
>> (with footnotes designated by "[n]"):
>>
>> 1. Install the cygipc ipc-daemon as a NT service:
>> A)If you are upgrading from a version prior to 7.3.4-2
>> shutdown the postmaster and cygipc services.
>> close the service manager screen.
>> # ipc-daemon --remove-as-service
>> # ipc-daemon2 --install-as-service
>>
>> Next skip to step 4.
>>
>> B)If it is a fresh install
>> # ipc-daemon2 --install-as-service
>>
>> 2. Create the "postgres" user account:
>>
>> # net user postgres $password /add /fullname:postgres
>> /comment:'PostgreSQL user account' /homedir:"$(cygpath -w
>> /home/postgres)" # [11]
>> # mkpasswd -l -u postgres >>/etc/passwd
>>
>> 3. Grant the "postgres" user the "Log on as a service" user right:
>>
>> # cmd /c secpol.msc # [3] [4] [5] [12]
>>
>> 4. Install postmaster as a NT service:
>> A)If you are upgrading from a version prior to 7.3.4-2
>> # cygrunsrv --remove postmaster
>> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args
>> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
>> postgres --shutdown # [6]
>>
>> Skip to step 7.
>>
>> B)If you are doing a fresh install:
>> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args
>> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user
>> postgres --shutdown # [6]
>>
>> 5. Create the PostgreSQL data directory:
>>
>> # mkdir /usr/share/postgresql/data
>>
>> 6. Change ownership of the PostgreSQL data directory:
>>
>> # chown postgres /usr/share/postgresql/data # [10]
>>
>> 7. Start the cygipc ipc-daemon:
>>
>> # net start ipc-daemon2 # [7]
>>
>> **If upgrading skip to step 9.
>>
>> 8. Initialize PostgreSQL (*when running under the "postgres" account*):
>>
>> $ initdb -D /usr/share/postgresql/data
>>
>> 9. Start postmaster:
>>
>> # net start postmaster # [7]
>>
>> 10. Connect to PostgreSQL:
>>
>> # psql -U postgres template1 # [8] [9]
>>
>> The following are the notes to the above:
>>
>> [snip]
>
>Sorry, but I feel that my README is already too cluttered. However, I
>will add an issue regarding upgrading from 7.3.4-1 or earlier.
>
>Thanks,
>Jason
>
>--
>PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
>Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
---------------------------------------------
WWW.rec-all.com - a community of all the RECs
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Re: postgresql on windows 2000
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. > > >Check your Event Viewer-> Application log. There might be more information about the error there. >
> >Mike >
> >-----Original Message----- >
>
From: raj_14_11@rec-all.com [mailto:raj_14_11@rec-all.com] >
Sent: Monday, September 08, 2003 11:45 PM >
To: jason@tishler.net >
Cc: pgsql-cygwin@postgresql.org; godsham@speakeasy.net >
Subject: Re: [CYGWIN] postgresql on windows 2000 >
> >Hi >
> >
i have tried all possibilities and followed all the instructions but when it comes to start postmaster i get this >
******************************************** >
$ net start postmaster >
The postmaster service is starting. >
The postmaster service could not be started. >The service did not report an error. >
> >More help is available by typing NET HELPMSG 3534. >
> >$ NET HELPMSG 3534 >
> >The service did not report an error. >
>
> >EXPLANATION >
> >The service did not report an error. >
> >ACTION >
> >Try the task later. If the problem persists, contact your network >
> >
administrator. >
******************************************** >
can anybody help me ? >>Mike, >
> >
> >
>Please keep your replies on-list. >
> >
>On Fri, Sep 05, 2003 at 09:10:05PM -0500, Mike G wrote: >
>> It sounds like the cygipc-daemon is running the wrong version. The >
>> instructions located in the >
>> readme(http://www.tishler.net/jason/software/postgresql/postgresql-7.3.3.README) >
>> need to be updated. >
> >
>Have you seen the following? >
> >
> http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README >
> >
>> This is what it should read now: >
>> >
>> The following is the NT services Cygwin PostgreSQL installation >
>> procedure >
>> (with footnotes designated by "[n]"): >
>> >
>> 1. Install the cygipc ipc-daemon as a NT service: >
>> A)If you are upgrading from a version prior to 7.3.4-2 >
>> shutdown the postmaster and cygipc services. >
>> close the service manager screen. >
>> # ipc-daemon --remove-as-service >
>> # ipc-daemon2 --install-as-service >
>> >
>> Next skip to step 4. >
>> >
>> B)If it is a fresh install >
>> # ipc-daemon2 --install-as-service >
>> >
>> 2. Create the "postgres" user account: >
>> >
>> # net user postgres $password /add /fullname:postgres >
>> /comment:'PostgreSQL user account' /homedir:"$(cygpath -w >
>> /home/postgres)" # [11] >
>> # mkpasswd -l -u postgres >>/etc/passwd >
>> >
>> 3. Grant the "postgres" user the "Log on as a service" user right: >
>> >
>> # cmd /c secpol.msc # [3] [4] [5] [12] >
>> >
>> 4. Install postmaster as a NT service: >
>> A)If you are upgrading from a version prior to 7.3.4-2 >
>> # cygrunsrv --remove postmaster >
>> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args >
>> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user >
>> postgres --shutdown # [6] >
>> >
>> Skip to step 7. >
>> >
>> B)If you are doing a fresh install: >
>> # cygrunsrv --install postmaster --path /usr/bin/postmaster --args >
>> "-D /usr/share/postgresql/data -i" --dep ipc-daemon --termsig INT --user >
>> postgres --shutdown # [6] >
>> >
>> 5. Create the PostgreSQL data directory: >
>> >
>> # mkdir /usr/share/postgresql/data >
>> >
>> 6. Change ownership of the PostgreSQL data directory: >
>> >
>> # chown postgres /usr/share/postgresql/data # [10] >
>> >
>> 7. Start the cygipc ipc-daemon: >
>> >
>> # net start ipc-daemon2 # [7] >
>> >
>> **If upgrading skip to step 9. >
>> >
>> 8. Initialize PostgreSQL (*when running under the "postgres" account*): >
>> >
>> $ initdb -D /usr/share/postgresql/data >
>> >
>> 9. Start postmaster: >
>> >
>> # net start postmaster # [7] >
>> >
>> 10. Connect to PostgreSQL: >
>> >
>> # psql -U postgres template1 # [8] [9] >
>> >
>> The following are the notes to the above: >
>> >
>> [snip] >
> >
>Sorry, but I feel that my README is already too cluttered. However, I >
>will add an issue regarding upgrading from 7.3.4-1 or earlier. >
> >
>Thanks, >
>Jason >
> >
>-- >
>PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers >
>Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 >
> >
>---------------------------(end of broadcast)--------------------------- >
>TIP 2: you can get off all lists at once with the unregister command >
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) >--------------------------------------------- >
> >
WWW.rec-all.com - a community of all the RECs >---------------------------(end of broadcast)--------------------------- >
> --------------------------------------------- WWW.rec-all.com - a community of all the RECs
TIP 8: explain analyze is your friend >
Re: postgresql on windows 2000
On Wed, Sep 10, 2003 at 12:38:13PM +0700, raj_14_11@rec-all.com wrote:
> 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.
The above is normal and just means the service has stopped.
Anyway, did you read my post from yesterday?
http://archives.postgresql.org/pgsql-cygwin/2003-09/msg00089.php
Sigh... I thought we finally got to the bottom of your problem.
I will try again. Does the following help?
http://cygwin.com/ml/cygwin/2002-12/msg00666.html
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Re: postgresql on windows 2000
Thx jason it worked :-) now trying to connect to it from other host.again having some problem. >On Wed, Sep 10, 2003 at 12:38:13PM +0700, raj_14_11@rec-all.com wrote: >> 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. > >The above is normal and just means the service has stopped. > >Anyway, did you read my post from yesterday? > > http://archives.postgresql.org/pgsql-cygwin/2003-09/msg00089.php > >Sigh... I thought we finally got to the bottom of your problem. > >I will try again. Does the following help? > > http://cygwin.com/ml/cygwin/2002-12/msg00666.html > >Jason > >-- >PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers >Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 --------------------------------------------- WWW.rec-all.com - a community of all the RECs