mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +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:
@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: dynamic_loader.h,v 1.12 1999/07/15 23:04:21 momjian Exp $
|
||||
* $Id: dynamic_loader.h,v 1.13 1999/10/25 03:07:58 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -14,7 +14,6 @@
|
||||
#define DYNAMIC_LOADER_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h> /* For MAXPATHLEN */
|
||||
|
||||
/* we need this include because port files use them */
|
||||
#include "postgres.h"
|
||||
@ -30,7 +29,7 @@
|
||||
|
||||
typedef struct df_files
|
||||
{
|
||||
char filename[MAXPATHLEN]; /* Full pathname of file */
|
||||
char filename[MAXPGPATH]; /* Full pathname of file */
|
||||
dev_t device; /* Device file is on */
|
||||
ino_t inode; /* Inode number of file */
|
||||
void *handle; /* a handle for pg_dl* functions */
|
||||
|
Reference in New Issue
Block a user