Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8fbed2b

Browse files
committed
Added new option in ini file: needOptimization. Set needOptimization=0 if you don't need otimization
1 parent9611eef commit8fbed2b

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

‎nsis/postgresql.nsi

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Var AllMem
100100
Var FreeMem
101101
Var shared_buffers
102102
Var work_mem
103-
VarneedOptimiztion
103+
VarneedOptimization
104104
Var rButton1
105105
Var rButton2
106106

@@ -474,7 +474,7 @@ Section $(PostgreSQLString) sec1
474474
!insertmacro _ReplaceInFile"$DATA_DIR\postgresql.conf""#logging_collector = off""logging_collector = on"
475475
!insertmacro _ReplaceInFile"$DATA_DIR\postgresql.conf""#log_line_prefix = ''""log_line_prefix = '%t '"
476476

477-
${if}$needOptimiztion=="1"
477+
${if}$needOptimization=="1"
478478
${if}$shared_buffers!=""
479479
${ConfigWrite}"$DATA_DIR\postgresql.conf""shared_buffers =""$shared_buffers$\t$\t# min 128kB"$R0
480480
${endif}
@@ -1743,7 +1743,7 @@ Function nsDialogOptimization
17431743
${NSD_CreateRadioButton}0 70u 200u 24U"$(DLG_OPT3)"
17441744
Pop$rButton1
17451745

1746-
${if}$needOptimiztion=="1"
1746+
${if}$needOptimization=="1"
17471747
${NSD_SetState}$rButton2${BST_CHECKED}
17481748
${else}
17491749
${NSD_SetState}$rButton1${BST_CHECKED}
@@ -1759,9 +1759,9 @@ Function nsDialogsOptimizationPageLeave
17591759
${NSD_GetState}$rButton2$0
17601760

17611761
${if}$0==${BST_CHECKED}
1762-
StrCpy$needOptimiztion"1"
1762+
StrCpy$needOptimization"1"
17631763
${else}
1764-
StrCpy$needOptimiztion"0"
1764+
StrCpy$needOptimization"0"
17651765
${endif}
17661766
FunctionEnd
17671767

@@ -1816,7 +1816,7 @@ ${EndIf}
18161816
;AccessControl::GetCurrentUserName
18171817
;Pop $0 ; or "error"
18181818
;MessageBox MB_OK "$0"
1819-
StrCpy$needOptimiztion"1"
1819+
StrCpy$needOptimization"1"
18201820

18211821
StrCpy$isDataDirExist0
18221822

@@ -1906,6 +1906,11 @@ ${EndIf}
19061906
${if}"$1"!=""
19071907
StrCpy$isEnvVar$1
19081908
${endif}
1909+
1910+
ReadINIStr$1$0 options needoptimization
1911+
${if}"$1"!=""
1912+
StrCpy$needOptimization"$1"
1913+
${endif}
19091914
FunctionEnd
19101915

19111916
Function func1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp