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

Commitaa7f969

Browse files
committed
Change optimization for 32bit
1 parent2b00c55 commitaa7f969

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎nsis/postgresql.nsi

Lines changed: 7 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp