]> granicus.if.org Git - postgresql/commit
Arrange for the postmaster (and standalone backends, initdb, etc) to
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Jul 2005 04:51:52 +0000 (04:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 4 Jul 2005 04:51:52 +0000 (04:51 +0000)
commiteb5949d190e80360386113fde0f05854f0c9824d
treef5683b4ff77c0b311ae975817b88c5ccc65ce5a9
parent7504f0bae853b0b9fec03c8e361c8b1a4b1c3209
Arrange for the postmaster (and standalone backends, initdb, etc) to
chdir into PGDATA and subsequently use relative paths instead of absolute
paths to access all files under PGDATA.  This seems to give a small
performance improvement, and it should make the system more robust
against naive DBAs doing things like moving a database directory that
has a live postmaster in it.  Per recent discussion.
27 files changed:
contrib/dbsize/dbsize.c
src/backend/access/transam/slru.c
src/backend/access/transam/twophase.c
src/backend/access/transam/xlog.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/catalog.c
src/backend/commands/tablespace.c
src/backend/libpq/be-secure.c
src/backend/postmaster/pgarch.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/syslogger.c
src/backend/storage/file/fd.c
src/backend/storage/freespace/freespace.c
src/backend/storage/smgr/md.c
src/backend/tcop/postgres.c
src/backend/utils/adt/misc.c
src/backend/utils/init/flatfiles.c
src/backend/utils/init/globals.c
src/backend/utils/init/miscinit.c
src/backend/utils/init/postinit.c
src/backend/utils/misc/guc.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/slru.h
src/include/access/xlog.h
src/include/access/xlog_internal.h
src/include/miscadmin.h