aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/syscache.c
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
commit99f50dd720de59872bd842be3ec8eecea2be4b92 (patch)
tree15796a72c5daad4653e9bd2eacc9945a5df4b243 /src/backend/utils/cache/syscache.c
parent70a4519b82beee9e7bffb17ae4e6d81bb3ab89d8 (diff)
downloadpostgresql-99f50dd720de59872bd842be3ec8eecea2be4b92.tar.gz
postgresql-99f50dd720de59872bd842be3ec8eecea2be4b92.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/backend/utils/cache/syscache.c')
0 files changed, 0 insertions, 0 deletions