用户工具

站点工具


linux:postgresql

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:postgresql [2019/09/03 15:12] – add config optimization sdvcrxlinux:postgresql [2023/12/03 10:24] (当前版本) – 外部编辑 127.0.0.1
行 5: 行 5:
 ===== Install on Ubuntu ===== ===== Install on Ubuntu =====
  
-==== Install PostgreSQL 10  ====+==== Install PostgreSQL 11  ====
  
 可查看[[http://www.postgresql.org/download/linux/debian/|官网]]教程添加源安装。  可查看[[http://www.postgresql.org/download/linux/debian/|官网]]教程添加源安装。 
  
-下面以''Debian'' ''stretch''为例,安装PostgreSQL 10(Debian仓库内的PostgreSQL是 9.6 的)+下面以''Debian'' 10 ''buster''为例,安装PostgreSQL 12
  
 添加源: 添加源:
  
 <code> <code>
-echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgdg.list+echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
 </code> </code>
  
行 22: 行 22:
 wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
 sudo apt-get update sudo apt-get update
-sudo apt-get install postgresql-10+sudo apt-get install postgresql-12
 </code> </code>
  
行 31: 行 31:
 createuser --interactive createuser --interactive
 </code> </code>
 +
 ==== Upgrade PostgreSQL from 9.6 to 10  ==== ==== Upgrade PostgreSQL from 9.6 to 10  ====
  
行 141: 行 142:
 log_min_duration_statement = 300 log_min_duration_statement = 300
 </code> </code>
 +
 +===== Awesome List =====
 +
 +  * [[https://pgroonga.github.io/|PGroonga]] - Make PostgreSQL fast full text search platform for all languages!
linux/postgresql.1567494759.txt.gz · 最后更改: 2023/12/03 10:24 (外部编辑)