mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Standardize on MAXPGPATH as the size of a file pathname buffer,
eliminating some wildly inconsistent coding in various parts of the system. I set MAXPGPATH = 1024 in config.h.in. If anyone is really convinced that there ought to be a configure-time test to set the value, go right ahead ... but I think it's a waste of time.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.69 1999/10/06 21:58:02 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/bootstrap/bootstrap.c,v 1.70 1999/10/25 03:07:43 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -333,8 +333,10 @@ BootstrapMain(int argc, char *argv[])
|
||||
*/
|
||||
if (IsUnderPostmaster || xloginit)
|
||||
{
|
||||
sprintf(XLogDir, "%s%cpg_xlog", DataDir, SEP_CHAR);
|
||||
sprintf(ControlFilePath, "%s%cpg_control", DataDir, SEP_CHAR);
|
||||
snprintf(XLogDir, MAXPGPATH, "%s%cpg_xlog",
|
||||
DataDir, SEP_CHAR);
|
||||
snprintf(ControlFilePath, MAXPGPATH, "%s%cpg_control",
|
||||
DataDir, SEP_CHAR);
|
||||
}
|
||||
|
||||
if (IsUnderPostmaster && xloginit)
|
||||
|
Reference in New Issue
Block a user