pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: initdb -S should now have an explicit check that $PGDATA is vali 3+ messages / 1 participants [nested] [flat]
* pgsql: initdb -S should now have an explicit check that $PGDATA is vali @ 2015-05-29 21:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2015-05-29 21:03 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/c2b68b1f7d6de9e749d037a09c5875742e8e6250 Modified Files -------------- src/bin/initdb/initdb.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: initdb -S should now have an explicit check that $PGDATA is vali @ 2015-05-29 21:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2015-05-29 21:03 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/1943c000b7a22d3ca334196cfe3f7b8159b210c2 Modified Files -------------- src/bin/initdb/initdb.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: initdb -S should now have an explicit check that $PGDATA is vali @ 2015-05-29 21:03 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2015-05-29 21:03 UTC (permalink / raw) To: pgsql-committers 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. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/99f50dd720de59872bd842be3ec8eecea2be4b92 Modified Files -------------- src/bin/initdb/initdb.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-05-29 21:03 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-05-29 21:03 pgsql: initdb -S should now have an explicit check that $PGDATA is vali Tom Lane <tgl@sss.pgh.pa.us> 2015-05-29 21:03 pgsql: initdb -S should now have an explicit check that $PGDATA is vali Tom Lane <tgl@sss.pgh.pa.us> 2015-05-29 21:03 pgsql: initdb -S should now have an explicit check that $PGDATA is vali Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox