Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa7f969

Browse files
committed
Change optimization for 32bit
1 parent 2b00c55 commit aa7f969

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

nsis/postgresql.nsi

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
; PostgeSQL install Script
23
; Written by Postgres Professional, Postgrespro.ru
34
; used plugins: AccessControl, UserMgr,
@@ -232,7 +233,6 @@ Section $(PostgreSQLString) sec1
232233

233234
;Create uninstaller
234235
FileWrite $LogFile "Create uninstaller$\r$\n"
235-
236236
WriteUninstaller "$INSTDIR\Uninstall.exe"
237237

238238
; write uninstall strings
@@ -1682,14 +1682,19 @@ Function makeOptimization
16821682
;256MB = 32768 = 268435456
16831683
${if} $AllMem > 16000 ;>16gb
16841684
StrCpy $work_mem "128MB"
1685+
!ifdef PG_64bit
16851686
StrCpy $shared_buffers "1GB"
1687+
!else
1688+
StrCpy $shared_buffers "768MB"
1689+
!endif
1690+
16861691
StrCpy $effective_cache_size "16GB"
16871692
return
16881693
${endif}
16891694

16901695
${if} $AllMem > 8090 ;>8gb
16911696
StrCpy $work_mem "128MB"
1692-
StrCpy $shared_buffers "1GB"
1697+
StrCpy $shared_buffers "768MB"
16931698
StrCpy $effective_cache_size "8GB"
16941699
return
16951700
${endif}

0 commit comments

Comments
 (0)