This commit is contained in:
+19
-13
@@ -521,9 +521,15 @@ function selectWarningInfoMessages(
|
|||||||
|
|
||||||
// Memory warnings
|
// Memory warnings
|
||||||
if (totalMemory < 256 * SIZE_UNIT_MAP['MB']) {
|
if (totalMemory < 256 * SIZE_UNIT_MAP['MB']) {
|
||||||
warnings.push('this tool not being optimal', 'for low memory systems')
|
warnings.push(
|
||||||
|
'этот инструмент не предназначен',
|
||||||
|
'для систем с низким количеством ОЗУ',
|
||||||
|
)
|
||||||
} else if (totalMemory > 100 * SIZE_UNIT_MAP['GB']) {
|
} else if (totalMemory > 100 * SIZE_UNIT_MAP['GB']) {
|
||||||
warnings.push('this tool not being optimal', 'for very high memory systems')
|
warnings.push(
|
||||||
|
'этот инструмент не предназначен',
|
||||||
|
'для систем с очень большим количеством ОЗУ',
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Advanced features compilation warnings
|
// Advanced features compilation warnings
|
||||||
@@ -531,8 +537,8 @@ function selectWarningInfoMessages(
|
|||||||
if (warnings.length > 0) warnings.push('')
|
if (warnings.length > 0) warnings.push('')
|
||||||
|
|
||||||
warnings.push(
|
warnings.push(
|
||||||
'wal_compression = lz4 requires PostgreSQL',
|
'wal_compression = lz4 требует, чтобы PostgreSQL',
|
||||||
'to be compiled with --with-lz4',
|
'был скомпилирован с флагом --with-lz4',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -540,8 +546,8 @@ function selectWarningInfoMessages(
|
|||||||
if (warnings.length > 0) warnings.push('')
|
if (warnings.length > 0) warnings.push('')
|
||||||
|
|
||||||
warnings.push(
|
warnings.push(
|
||||||
'io_method = io_uring requires PostgreSQL',
|
'io_method = io_uring требует, чтобы PostgreSQL',
|
||||||
'to be compiled with --with-liburing',
|
'был скомпилирован с флагом --with-liburing',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -552,19 +558,19 @@ function selectWarningInfoMessages(
|
|||||||
dbSize !== DB_SIZE_LESS_RAM
|
dbSize !== DB_SIZE_LESS_RAM
|
||||||
) {
|
) {
|
||||||
const driveName = {
|
const driveName = {
|
||||||
[HARD_DRIVE_SSD]: 'SSDs',
|
[HARD_DRIVE_SSD]: 'SSD',
|
||||||
[HARD_DRIVE_NVME]: 'NVMe drives',
|
[HARD_DRIVE_NVME]: 'NVME',
|
||||||
[HARD_DRIVE_SAN]: 'SAN storage',
|
[HARD_DRIVE_SAN]: 'SAN',
|
||||||
}[hdType]
|
}[hdType]
|
||||||
|
|
||||||
if (warnings.length > 0) warnings.push('')
|
if (warnings.length > 0) warnings.push('')
|
||||||
|
|
||||||
warnings.push(
|
warnings.push(
|
||||||
`Cost parameters for Data Warehouses on ${driveName} are left at defaults`,
|
`Параметры стоимости для хранилищ данных на ${driveName} оставлены со значениями по умолчанию,`,
|
||||||
'to avoid catastrophic index scan selections',
|
'чтобы избежать катастрофического выбора при сканировании индексов.',
|
||||||
'Monitor query planner behavior and adjust random_page_cost if necessary',
|
'Следите за поведением планировщика запросов и при необходимости корректируйте random_page_cost.',
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return warnings.length > 0 ? ['WARNING', ...warnings] : []
|
return warnings.length > 0 ? ['ВНИМАНИЕ', ...warnings] : []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user