pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lord Voldemort <murderthemuggles@yahoo.co.in>
To: pgsql-jdbc@postgresql.org
Subject: Help me start postmaster on a default installation of PostgreSQL.
Date: Wed, 06 Jul 2011 16:04:55 +0530
Message-ID: <4E143A4F.50104@yahoo.co.in> (raw)

Hi!
I'm running Ubuntu 10.10 and I have installed PostgreSQL and JDBC 
drivers form the repository. I have not changed any default settings. I 
want to run the postmaster service to access database from a Java 
program. I've read around a bit about and it has not helped. I don't 
want to go in great depth about how to do this because right now I'm 
focusing on learning Java and I don't really have enough time to read 
hundreds of pages of docs.

I've added /usr/lib/postgresql/8.4/bin to my PATH variable.

Command "pg_ctl start" or "postmaster" gives an error about not being 
able to find "postgresql.conf" in the directory specified by PGDATA or 
my home folder if it's blank.

I found this file (postgresql.con) in /etc/postgresql/8.4/main/ and 
created a shortcut to it in my home folder.

Now I'm getting error

2011-07-06 09:56:57 GMT FATAL:  data directory 
"/var/lib/postgresql/8.4/main" has wrong ownership
2011-07-06 09:56:57 GMT HINT:  The server must be started by the user 
that owns the data directory.

This data directory is owned by postgres.

I read somewhere that this postmaster has to be run by the user postgres 
but I don't know how to do that.

Apart from that my installation is working fine. I've already created a 
user for myself and a small trial  database too.

Please help me.



view thread (7+ messages)  latest in thread

Message-ID: <4E143A4F.50104@yahoo.co.in>
Permalink:  ../4E143A4F.50104@yahoo.co.in/
Also on:    postgresql.org/message-id/4E143A4F.50104@yahoo.co.in

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: murderthemuggles@yahoo.co.in
  Subject: Re: Help me start postmaster on a default installation of PostgreSQL.
  In-Reply-To: <4E143A4F.50104@yahoo.co.in>
  References: <4E143A4F.50104@yahoo.co.in>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox