X-Original-To: pgsql-novice-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3464852875 for ; Tue, 14 Jun 2005 16:34:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53105-05 for ; Tue, 14 Jun 2005 19:34:46 +0000 (GMT) Received: from web33311.mail.mud.yahoo.com (web33311.mail.mud.yahoo.com [68.142.206.126]) by svr1.postgresql.org (Postfix) with SMTP id B91F352874 for ; Tue, 14 Jun 2005 16:34:42 -0300 (ADT) Received: (qmail 72769 invoked by uid 60001); 14 Jun 2005 19:34:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=twJ7oAbT6GtvAU4RhDtALtKJKUjLS5qUnlFD92mVCiuQM/3/h6lstJ/frAw2PDnwCiXVgUTbJoEymApAk2KtsravSJf/rG0220ojJuGXPZioEd7AndUYVe4fXGiba4dz0u4ce6k8oluDJb+XlGGPClYVHSS97oV+2cxZyNmU52s= ; Message-ID: <20050614193443.72767.qmail@web33311.mail.mud.yahoo.com> Received: from [12.9.179.126] by web33311.mail.mud.yahoo.com via HTTP; Tue, 14 Jun 2005 12:34:43 PDT Date: Tue, 14 Jun 2005 12:34:43 -0700 (PDT) From: Subject: Re: PGDATA - SOLVED To: pgsql-novice@postgresql.org In-Reply-To: <20050614191810.8965.qmail@web33303.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.466 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FORGED_YAHOO_RCVD, NO_REAL_NAME X-Spam-Level: ** X-Archive-Number: 200506/83 X-Sequence-Number: 13676 --- operationsengineer1@yahoo.com wrote: > i currently develop on a winxp laptop. i use cygwin > and my pgsql version is 7.4.x (x=3, maybe?). > > i have to manually start up apache and pgsql. i'm > spending some time learning linux. i found that i > could edit my .bash_profile so i don't have to type > the path to cygserver every time i tried to start > it. > > i'd like to do something similar when using pg_ctl > to > start and stop the postmaster. > > i read the the help files for pg_ctl and it said > PGDATA was the default if there was no -D flag and > then a directy path to the data directory. > > i want to set PGDATA path to my DATA directory, but > i > can't find PGDATA on my system. > > can anyone help here? > > tia... i was able to solve this one. i added... export PGDATA=/usr/share/postgresql/data export PATH=/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/share/postgresql/data to my .bash_profile (i want a local configuration). now all i have to do in cygwin to start up pgsql is to type the following... first... cygserver & once cygserver is up and running, i hit [enter] to get a prompt then... second... pg_ctl start -o -i kinda cool for a rookie - and we won't mention i've been typing the directory path for almost a year... -lol- __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail