|
37 | 37 | * |
38 | 38 | * |
39 | 39 | * IDENTIFICATION |
40 | | - * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.442 2004/12/31 22:00:40 pgsql Exp $ |
| 40 | + * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.443 2005/01/12 16:38:17 tgl Exp $ |
41 | 41 | * |
42 | 42 | * NOTES |
43 | 43 | * |
|
92 | 92 | #include<DNSServiceDiscovery/DNSServiceDiscovery.h> |
93 | 93 | #endif |
94 | 94 |
|
| 95 | +#include"catalog/pg_control.h" |
95 | 96 | #include"catalog/pg_database.h" |
96 | 97 | #include"commands/async.h" |
97 | 98 | #include"lib/dllist.h" |
@@ -167,7 +168,7 @@ intReservedBackends; |
167 | 168 | staticconstchar*progname=NULL; |
168 | 169 |
|
169 | 170 | /* The socket(s) we're listening to. */ |
170 | | -#defineMAXLISTEN10 |
| 171 | +#defineMAXLISTEN64 |
171 | 172 | staticintListenSocket[MAXLISTEN]; |
172 | 173 |
|
173 | 174 | /* |
@@ -337,8 +338,8 @@ typedef struct |
337 | 338 | #endif |
338 | 339 | charmy_exec_path[MAXPGPATH]; |
339 | 340 | charExtraOptions[MAXPGPATH]; |
340 | | -charlc_collate[MAXPGPATH]; |
341 | | -charlc_ctype[MAXPGPATH]; |
| 341 | +charlc_collate[LOCALE_NAME_BUFLEN]; |
| 342 | +charlc_ctype[LOCALE_NAME_BUFLEN]; |
342 | 343 | }BackendParameters; |
343 | 344 |
|
344 | 345 | staticvoidread_backend_variables(char*id,Port*port); |
@@ -3682,8 +3683,8 @@ save_backend_variables(BackendParameters *param, Port *port, |
3682 | 3683 |
|
3683 | 3684 | StrNCpy(param->ExtraOptions,ExtraOptions,MAXPGPATH); |
3684 | 3685 |
|
3685 | | -StrNCpy(param->lc_collate,setlocale(LC_COLLATE,NULL),MAXPGPATH); |
3686 | | -StrNCpy(param->lc_ctype,setlocale(LC_CTYPE,NULL),MAXPGPATH); |
| 3686 | +StrNCpy(param->lc_collate,setlocale(LC_COLLATE,NULL),LOCALE_NAME_BUFLEN); |
| 3687 | +StrNCpy(param->lc_ctype,setlocale(LC_CTYPE,NULL),LOCALE_NAME_BUFLEN); |
3687 | 3688 |
|
3688 | 3689 | return true; |
3689 | 3690 | } |
|