Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inmFj-000170-SO for pgsql-general@arkaria.postgresql.org; Sat, 04 Jan 2020 16:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1inmFh-0004v5-AJ for pgsql-general@arkaria.postgresql.org; Sat, 04 Jan 2020 16:26:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1inmFg-0004ux-TO for pgsql-general@lists.postgresql.org; Sat, 04 Jan 2020 16:26:13 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1inmFb-0001KY-UA for pgsql-general@lists.postgresql.org; Sat, 04 Jan 2020 16:26:11 +0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 37E53262FB8 for ; Sat, 4 Jan 2020 08:26:06 -0800 (PST) Date: Sat, 4 Jan 2020 08:26:06 -0800 (PST) From: Rich Shepard To: pgsql-general@lists.postgresql.org Subject: Re: Changing default ../data/ directory In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, 4 Jan 2020, nikhil raj wrote: > Step 1-: Stop the postgres services and change the path of the > data directory in postgres.conf file. The postgresql.conf.sample notes that the default value of data_directory is taken from -D in the startup command or the PGDATA environment variable. I suppose that I can define PGDATA in ~/.bash_profile as I'm the only user. Thanks, Rich