PostgreSQL on HomeBrew
ΠΡΡΡ ΠΏΠΎ ΠΊΠΎΡΠΎΡΠΎΠΌΡ Π»Π΅ΠΆΠ°Ρ ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΠΎΠ½Π½ΡΠ΅ ΡΠ°ΠΉΠ»Ρ ΠΈ ΡΠ°ΠΌΠΈ Π΄Π°Π½Π½ΡΠ΅: /usr/local/var/postgresql@16
ΠΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ Postgres
- ΠΡΡΠ°Π½ΠΎΠ²ΠΈΡΡ ΠΠ:
brew services stop postgresql@15- ΠΡΠΎΠ²Π΅ΡΠΊΠ° ΠΏΠ΅ΡΠ΅Π΄ ΠΏΠ΅ΡΠ΅Π½ΠΎΡΠΎΠΌ Π΄Π°Π½Π½ΡΡ :
/usr/local/opt/postgresql@16/bin/pg_upgrade --old-datadir=/usr/local/var/postgresql@15 --new-datadir=/usr/local/var/postgresql@16 --old-bindir=/usr/local/opt/postgresql@15/bin --new-bindir=/usr/local/opt/postgresql@16/bin --old-options='-c config_file=/usr/local/var/postgresql@15/postgresql.conf' --new-options='-c config_file=/usr/local/var/postgresql@16/postgresql.conf' --check
ΠΡΠΎΠ²Π΅Π΄Π΅Π½ΠΈΠ΅ ΠΏΡΠΎΠ²Π΅ΡΠΎΠΊ ΡΠ΅Π»ΠΎΡΡΠ½ΠΎΡΡΠΈ
-------------------------------
Checking cluster versions ΠΎΠΊ
Checking database user is the install user ΠΎΠΊ
Checking database connection settings ΠΎΠΊ
Checking for prepared transactions ΠΎΠΊ
Checking for system-defined composite types in user tables ΠΎΠΊ
Checking for reg* data types in user tables ΠΎΠΊ
Checking for contrib/isn with bigint-passing mismatch ΠΎΠΊ
Checking for incompatible "aclitem" data type in user tables ΠΎΠΊ
Checking for presence of required libraries ΠΎΠΊ
Checking database user is the install user ΠΎΠΊ
Checking for prepared transactions ΠΎΠΊ
Checking for new cluster tablespace directories ΠΎΠΊ
*ΠΠ»Π°ΡΡΠ΅ΡΡ ΡΠΎΠ²ΠΌΠ΅ΡΡΠΈΠΌΡ*- Π’ΠΎ ΠΆΠ΅ ΡΠ°ΠΌΠΎΠ΅ Π½ΠΎ Π±Π΅Π·
--checkΠ½Π° ΠΊΠΎΠ½ΡΠ΅ ΠΌΠΈΠ³ΡΠΈΡΡΠ΅Ρ Π΄Π°Π½Π½ΡΠ΅. brew services start postgresql@16/usr/local/opt/postgresql@16/bin/vacuumdb --all --analyze-in-stagesbrew uninstall postgresql@15
Source:: https://www.kostolansky.sk/posts/upgrading-to-postgresql-15/