mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/access/slru.h,v 1.11 2004/12/31 22:03:21 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/include/access/slru.h,v 1.12 2005/07/04 04:51:52 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -87,7 +87,7 @@ typedef struct SlruCtlData
|
||||
* Dir is set during SimpleLruInit and does not change thereafter.
|
||||
* Since it's always the same, it doesn't need to be in shared memory.
|
||||
*/
|
||||
char Dir[MAXPGPATH];
|
||||
char Dir[64];
|
||||
} SlruCtlData;
|
||||
|
||||
typedef SlruCtlData *SlruCtl;
|
||||
|
||||
Reference in New Issue
Block a user