Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 98390B5DBCA for ; Wed, 6 Jul 2011 07:42:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 61745-05 for ; Wed, 6 Jul 2011 10:41:59 +0000 (UTC) X-Greylist: delayed 00:06:44.845185 by SQLgrey-1.7.6 Received: from nm15-vm1.bullet.mail.ne1.yahoo.com (nm15-vm1.bullet.mail.ne1.yahoo.com [98.138.90.254]) by mail.postgresql.org (Postfix) with SMTP id 0A9ADB5D944 for ; Wed, 6 Jul 2011 07:41:58 -0300 (ADT) Received: from [98.138.90.48] by nm15.bullet.mail.ne1.yahoo.com with NNFMP; 06 Jul 2011 10:35:13 -0000 Received: from [98.138.84.45] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 06 Jul 2011 10:35:13 -0000 Received: from [127.0.0.1] by smtp113.mail.ne1.yahoo.com with NNFMP; 06 Jul 2011 10:35:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1309948513; bh=WmlDrMnRwHRBzDceSI63byZnu8Ji1Y3StI9OkGJj7GU=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=Enk3D5kdD/DCAszFUghUZDoH947nKVdYqJTGWYmp9N1bq1xmSLD0bOr61m5ghtvBc1jTgz9HIlmyLnA/FmdYbosS7kutoExIbW4flF3fMeddi3Grtpbs7oNPOURHsLXjXlT10j9YMH1/sATE4zsL2C9LCsR0QgFY7qf1K56uOIU= X-Yahoo-Newman-Id: 217936.86016.bm@smtp113.mail.ne1.yahoo.com Received: from [117.226.133.214] (murderthemuggles@117.226.133.214 with plain) by smtp113.mail.ne1.yahoo.com with SMTP; 06 Jul 2011 03:35:11 -0700 PDT X-Yahoo-SMTP: Z9ueMwuswBAeZsq5da5WndlVRuWDsk1flMkQixk- X-YMail-OSG: YpbyMiwVM1mIbeHKW5eFLa44_bp4DYJ6NGddy3P5IcKWEdR pjaMPrjIcjPKTjgjndJegRQFY.T3AyENDbb3iuASCajoFzi35_JRqiEu_WV3 uBU9t_EeIelZX_TbUBxMzhvzB7z6MCAI9ZgpUmmKPCqmAwLo.NKRnRp2ZPMl YWuvYJ9VNGNk7Ey69TAplo44xKmwKeaf3gy.ft.eKJAl8Db3eK7Ev1Cb2ked qUcV4KhDaTgvMmyYvunX1fzym_x3ioG2MlSCz8XiD4fhxBLn1VOCBA8DWA1W R3EJgDwwHFXHg8d5I7sBxE6gQ_HT6ZVGMtF33goLIdl7FSd5pJN8ztdKneM3 mcN3QgQQH3BXm2.Quy6sx1ppAEw-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4E143A4F.50104@yahoo.co.in> Date: Wed, 06 Jul 2011 16:04:55 +0530 From: Lord Voldemort User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Help me start postmaster on a default installation of PostgreSQL. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.889 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201107/7 X-Sequence-Number: 22011 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.