LinuxQuestions.org
Have you listened to LQ Radio?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 09-05-2001, 09:19 AM   #1
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132
Thanked: 0
PostgreSQL postmaster//users question


[Log in to get rid of this advertisement]
Hello,

I've installed PostgreSQL 7.0.? (it came with the standard REd Hat 7.1 distribution). Now the problem is when I type postmaster at the commandline, it says,

"the PostgreSQL cannot be run as 'root' user..."

Now, there Is a user called postgreSQl. Now, my question is:

How do I start up postgreSQL ? It is not started when the machine starts up....

Thanks,

Best REgards,

Ahsan A.
DoubleLetter is offline     Reply With Quote
Old 09-06-2001, 09:34 AM   #2
arraman
LQ Newbie
 
Registered: Jun 2001
Posts: 14
Thanked: 0
To start Postgresql

1) Login in as root.
2) Type ntsysv, there enable postgres
Doing this allows to start postmaster everytime the machine is booted.
3) restart your machine.
4) Login in as root
5) type su -postgres
6) Type createuser & specify which user wants to access postgres.
7) then just type psql

Hope it's clear.



Raghu Raman.
arraman is offline     Reply With Quote
Old 02-05-2008, 04:14 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :}
Posts: 18,848
Blog Entries: 1
Thanked: 160
Quote:
Originally Posted by DoubleLetter View Post
Hello,

I've installed PostgreSQL 7.0.? (it came with the standard REd Hat 7.1 distribution). Now the problem is when I type postmaster at the commandline, it says,

"the PostgreSQL cannot be run as 'root' user..."

Now, there Is a user called postgreSQl. Now, my question is:

How do I start up postgreSQL ? It is not started when the machine starts up....

Thanks,

Best REgards,

Ahsan A.
I'd strongly recommend updating both the OS and Postgres to
a sensible version. PostgreSQL 7.3 is about to go out of
support sometime soon, and chances are that you're running
a version that had tons of patches after RH bundled it....
or at least try to get all the patches/fixes applied that
you possibly can.

As for the actual question: check the content of your postgres
rpms ... that should give you pointers as to which files are
a) involved in starting postgres (e.g. /etc/init.d/postgres)
and b) where postgres logs to. Both pieces of information
should aid you in finding out why it doesn't start.

something like:
Code:
rpm -ql $( rpm -qa | grep -i postgres )


Cheers,
Tink
Tinkster is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question Of Postgresql treotan Linux - Newbie 5 09-22-2004 07:45 AM
PostgreSQL (or just SQL) question jacksmash Programming 6 12-30-2003 11:46 AM
Default users for MySQL and PostgreSQL in RH8? arthurzap Linux - Software 0 03-26-2003 09:04 AM
PostgreSQL question digital bots Linux - Newbie 3 06-18-2002 01:37 AM
MySQL of PostgreSQL that is the question? Noerr Linux - Software 17 06-02-2002 04:07 PM


All times are GMT -5. The time now is 08:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration