Possible, PostgreSQL running only when using PT3?

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Possible, PostgreSQL running only when using PT3?

Postby S1CKD0NK » Thu Jun 18, 2009 10:59 am

Is it possible to setup PT3 and PostgreSQL so that the seven postgres.exe processes and pg_ctl.exe process are only started when I'm using PT3 and killed when I exit PT3?

So basically... is it possible to setup PostgreSQL so that it's only running when I'm using PT3?
I suppose it could be done with pg_ctl since it's used in Windows Services for starting the PostgreSQL service, but what's the best way?
S1CKD0NK
 
Posts: 2
Joined: Fri Jun 20, 2008 12:48 am

Re: Possible, PostgreSQL running only when using PT3?

Postby kraada » Thu Jun 18, 2009 11:50 am

The simplest thing is just that when you finish using PT3, you should go click Start --> Programs --> PostgreSQL --> Stop Services. That will stop the PostgreSQL service. PT3 does not have this function automated.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Possible, PostgreSQL running only when using PT3?

Postby WhiteRider » Thu Jun 18, 2009 11:55 am

PT3 will start the service automatically, though.
WhiteRider
Moderator
 
Posts: 54018
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Possible, PostgreSQL running only when using PT3?

Postby S1CKD0NK » Thu Jun 18, 2009 2:20 pm

Ok, I created a simple batch file which stops PostgreSQL service ("net stop pgsql-8.3").

BTW, the reason for doing all this is that PT3 is not used very often on my desktop computer. I have another license running on a laptop which is primarly used for playing poker.

Would be a simple option (Shutdown PostgresSQL when PT3 is quit) to add to PT3 though. Surely databases changes are committed immediately so there's no danger in shutting the PostgreSQL service down... These days there are so many extra processes running on computers that it gets a bit annoying when using Task Manager etc.
S1CKD0NK
 
Posts: 2
Joined: Fri Jun 20, 2008 12:48 am

Re: Possible, PostgreSQL running only when using PT3?

Postby kraada » Thu Jun 18, 2009 2:38 pm

It's been requested previously and it is on our list of features to add eventually, but I don't know how soon it will be implemented.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 14 guests

cron
highfalutin