Skip to content

Add an option to skip DB init check #1220

Open
@xtexx

Description

@xtexx

https://github.com/docker-library/postgres/blob/master/16/alpine3.19/docker-entrypoint.sh#L234

Currently, checking if the DB is initialized is by checking if $PGDATA/PG_VERSION if exist.
However, PGDATA may not be the real data directory.
The real data directory can be overwritten by $PGDATA/postgresql.conf with data_directory = ''.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions