XP comamnd line to start Postgre

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

XP comamnd line to start Postgre

Postby jsweetman » Thu Jan 15, 2009 10:26 pm

I'm getting some kind of error when I try to start the Postgre servive from Programs but it flashes by too fast to see. What is the command line language for starting the service?
jsweetman
 
Posts: 4
Joined: Sun Nov 16, 2008 6:54 pm

Re: XP comamnd line to start Postgre

Postby yournamehere » Fri Jan 16, 2009 4:46 am

are you sure it isn't actually running and what's flashing on the screen is "already running"? :) I run pgsql on linux but from what I read in posts about windows setups is that it is generally a start up service meaning you wouldn't be trying to run it manually.

if that's not the case for you then probably easiest is to look at the end of postgresql.log and see what it's complaining about (iirc flat out errs always log but if necessary you can bump verbosity in postgresql.conf and try again).

if that doesn't work (this is a linux path you'll need to translate yourself) then look at the file "/var/lib/pgsql/data/postmaster.opts" which shows how it was last started.

and last but not least, if none of those work, in linux it's generically started with "/usr/local/bin/postmaster -p 5432 -D /var/lib/pgsql/data -i" by postgres user (and again you'll have to make the windows path translations).
yournamehere
 
Posts: 6
Joined: Tue Dec 30, 2008 4:21 am

Re: XP comamnd line to start Postgre

Postby kraada » Fri Jan 16, 2009 10:46 am

yournamehere is correct that the postmaster.opts file contains the way that postgres was started last time; in Windows it's located in C:\Program Files\PostgreSQL\8.3\data\.

If you look at the most recent file in C:\Program Files\PostgreSQL\8.3\data\pg_log it should tell you more about what's going on; that's where PostgreSQL writes its log files.

You can check if PostgreSQL is running by pressing ctrl+alt+del and clicking Task Manager, change to the Processes tab and if PostgreSQL is running you'll see several postgres processes there.
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 22 guests

cron