File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+
1
2
; PostgeSQL install Script
2
3
; Written by Postgres Professional, Postgrespro.ru
3
4
; used plugins: AccessControl, UserMgr,
@@ -232,7 +233,6 @@ Section $(PostgreSQLString) sec1
232
233
233
234
; Create uninstaller
234
235
FileWrite $LogFile " Create uninstaller$\r$\n "
235
-
236
236
WriteUninstaller " $INSTDIR\Uninstall.exe"
237
237
238
238
; write uninstall strings
@@ -1682,14 +1682,19 @@ Function makeOptimization
1682
1682
; 256MB = 32768 = 268435456
1683
1683
${if} $AllMem > 16000 ; >16gb
1684
1684
StrCpy $work_mem " 128MB"
1685
+ !ifdef PG_64bit
1685
1686
StrCpy $shared_buffers " 1GB"
1687
+ !else
1688
+ StrCpy $shared_buffers " 768MB"
1689
+ !endif
1690
+
1686
1691
StrCpy $effective_cache_size " 16GB"
1687
1692
return
1688
1693
${endif}
1689
1694
1690
1695
${if} $AllMem > 8090 ; >8gb
1691
1696
StrCpy $work_mem " 128MB"
1692
- StrCpy $shared_buffers " 1GB "
1697
+ StrCpy $shared_buffers " 768MB "
1693
1698
StrCpy $effective_cache_size " 8GB"
1694
1699
return
1695
1700
${endif}
You can’t perform that action at this time.
0 commit comments