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:53:25
Message-ID: CAPa1NVR2A+9iQNPwHQp0kbVUVc=EYTibE9xAUNgz=pcvwq=Erg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-docker

ok thanks

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

> It's probably best to raise this as an issue in the
> docker-library/postgres repo on GitHub in that case, along with a
> description of the commands you need to run.
>
> -md
>
> On Fri, Sep 4, 2015 at 7:50 AM, James Lorenzen <jameslorenzen(at)gmail(dot)com>
> wrote:
>
>> 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

Browse pgsql-pkg-docker by date

  From Date Subject
Next Message Josh berkus 2016-05-09 23:32:00 9.6 Beta 1 coming this Thursday
Previous Message Mike Dillon 2015-09-04 14:52:45 Re: Post Startup hooks