Re: Post Startup hooks

From: James Lorenzen <jameslorenzen(at)gmail(dot)com>
To: Mike Dillon <mike(at)embody(dot)org>
Cc: pgsql-pkg-docker(at)postgresql(dot)org
Subject: Re: Post Startup hooks
Date: 2015-09-04 14:50:04
Message-ID: CAPa1NVT6+ux4rCwaCyXbHTBhzikut6bspdiahx6mWCuA-ag3eQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-docker

Yeah I'm using a recent version. I'm able to run `psql` commands in my
script under /docker-entrypoint-initdb.d, but I need to run some other
commands that need to connect via TCP/IP.

On Fri, Sep 4, 2015 at 9:46 AM, Mike Dillon <mike(at)embody(dot)org> wrote:

> Are you using a recent version of the image? Scripts executed from
> /docker-entrypoint-initdb.d have been executed against a running Postgres
> server since this PR <https://github.com/docker-library/postgres/pull/75> was
> merged in July. Previous to that, the entrypoint scripts were expected to
> use "postgres --single", but that was determined to be broken for certain
> use cases and the Postgres maintainers aren't interested in fixing it (see
> the discussion here
> <http://www.postgresql.org/message-id/20150126124133.19763.60605@wrigleys.postgresql.org>
> ).
>
> -md
>
> On Thu, Sep 3, 2015 at 7:53 PM, James Lorenzen <jameslorenzen(at)gmail(dot)com>
> wrote:
>
>> Would it be possible for the postgres docker image to support some post
>> startup hooks? Seems like this would be a useful feature. I'm needing to
>> perform some actions that require postgres to be started but that doesn't
>> seem possible currently. Everything placed in `/docker-entrypoint-initdb.d`
>> runs before postgres is started.
>>
>> Thanks,
>> James Lorenzen
>>
>
>

In response to

Responses

Browse pgsql-pkg-docker by date

  From Date Subject
Next Message Mike Dillon 2015-09-04 14:52:45 Re: Post Startup hooks
Previous Message Mike Dillon 2015-09-04 14:46:12 Re: Post Startup hooks