• T
    Change backend-side COPY to write files with permissions 644 not 666 · d8ba3dfb
    Tom Lane 提交于
    (whoever thought world-writable files were a good default????).  Modify
    the pg_pwd code so that pg_pwd is created with 600 permissions.  Modify
    initdb so that permissions on a pre-existing PGDATA directory are not
    blindly accepted: if the dir is already there, it does chmod go-rwx
    to be sure that the permissions are OK and the dir actually is owned
    by postgres.
    d8ba3dfb
initdb.sh 17.1 KB