mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +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 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.56 1999/10/06 06:38:04 inoue Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.57 1999/10/25 03:07:47 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -591,7 +591,7 @@ mdblindwrt(char *dbstr,
|
||||
else
|
||||
/* this is work arround only !!! */
|
||||
{
|
||||
char dbpath[MAXPGPATH + 1];
|
||||
char dbpath[MAXPGPATH];
|
||||
Oid id;
|
||||
char *tmpPath;
|
||||
|
||||
@@ -628,7 +628,7 @@ mdblindwrt(char *dbstr,
|
||||
else
|
||||
/* this is work arround only !!! */
|
||||
{
|
||||
char dbpath[MAXPGPATH + 1];
|
||||
char dbpath[MAXPGPATH];
|
||||
Oid id;
|
||||
char *tmpPath;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user