- Notifications
You must be signed in to change notification settings - Fork28
Commitda33a38
committed
Revert exporting of internal GUC variable "data_directory".
This undoes a poorly-thought-out choice in commit970a186, namelyto export guc.c's internal variable data_directory. The authoritativevariable so far as C code is concerned is DataDir; there is no reason foranything except specific bits of GUC code to look at the GUC variable.After yesterday's commits fixing the fsync-on-restart patch, the onlyremaining misuse of data_directory was in AlterSystemSetConfigFile(),which would be much better off just using a relative path anyhow: it'sless code and it doesn't break if the DBA moves the data directory of arunning system, which is a case we've taken some pains over in the past.This is mostly cosmetic, so no need for a back-patch (and I'd be hesitantto remove a global variable in stable branches anyway).1 parentd8179b0 commitda33a38
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
439 | 438 | | |
440 | 439 | | |
441 | 440 | | |
| |||
476 | 475 | | |
477 | 476 | | |
478 | 477 | | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| |||
6895 | 6895 | | |
6896 | 6896 | | |
6897 | 6897 | | |
6898 | | - | |
6899 | | - | |
| 6898 | + | |
| 6899 | + | |
6900 | 6900 | | |
6901 | | - | |
6902 | | - | |
| 6901 | + | |
| 6902 | + | |
6903 | 6903 | | |
6904 | 6904 | | |
6905 | 6905 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| |||
0 commit comments
Comments
(0)