Re: What is the accepted practice to automate initdb (PostgreSQL 9.6)to a non-default directory? - Mailing list pgsql-admin

From Mike Lonergan
Subject Re: What is the accepted practice to automate initdb (PostgreSQL 9.6)to a non-default directory?
Date
Msg-id CAEzHCEOvAWgyz_kLF6xrL0Wd7iYvMRDw+B8kQYzm4HnXutrMPg@mail.gmail.com
Whole thread Raw
In response to Re: What is the accepted practice to automate initdb (PostgreSQL 9.6)to a non-default directory?  (Mike Lonergan <mikethecanuck@gmail.com>)
List pgsql-admin
For reference by any future novices who might stumble across this thread (and for the morbid curiosity of anyone on the list), here's the shell script I've generated to solve this challenge in an AWS EC2 environment:

On 2 March 2018 at 16:18, Mike Lonergan <mikethecanuck@gmail.com> wrote:
David, thank you as well - that article is fantastic.  I'll give this a whirl, but on its face it looks like exactly the solution we're after.  That approach to embedded the env var for the service is new to me - addresses a complete blank in my knowledge.

Thanks!
Mike

On 2 March 2018 at 16:13, David G. Johnston <david.g.johnston@gmail.com> wrote:
On Fri, Mar 2, 2018 at 5:03 PM, Mike Lonergan <mikethecanuck@gmail.com> wrote:

I'll definitely look into the launch script, see what I can do there.  Any other thoughts folks have would be more than welcome.
 
​This recent Planet PostgreSQL link​ seems worth a read.


David J.



pgsql-admin by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Reliable WAL file shipping over unreliable network
Next
From: Rui DeSousa
Date:
Subject: Re: Reliable WAL file shipping over unreliable network