aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres_ext.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-05-29 17:02:58 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-05-29 17:02:58 -0400
commitc2b68b1f7d6de9e749d037a09c5875742e8e6250 (patch)
treee07f276ae02537108423cd779ba5d09d765ee280 /src/include/postgres_ext.h
parent35dd1b51f2ea7a41621b7ab04be605ecfd7cfaf7 (diff)
downloadpostgresql-c2b68b1f7d6de9e749d037a09c5875742e8e6250.tar.gz
postgresql-c2b68b1f7d6de9e749d037a09c5875742e8e6250.zip
initdb -S should now have an explicit check that $PGDATA is valid.
The fsync code from the backend essentially assumes that somebody's already validated PGDATA, at least to the extent of it being a readable directory. That's safe enough for initdb's normal code path too, but "initdb -S" doesn't have any other processing at all that touches the target directory. To have reasonable error-case behavior, add a pg_check_dir call. Per gripe from Peter E.
Diffstat (limited to 'src/include/postgres_ext.h')
0 files changed, 0 insertions, 0 deletions