postgresql start shutdown

本文涉及的产品
云原生数据库 PolarDB MySQL 版,Serverless 5000PCU 100GB
云原生数据库 PolarDB PostgreSQL 版,标准版 2核4GB 50GB
云原生数据库 PolarDB MySQL 版,通用型 2核4GB 50GB
简介:
Java代码   收藏代码
  1. ./postgres -D /data/postgresql/ >> logfile 2>&1 &  
  2.  sed -i "s/#port = 5432/port = 11780/g" pg_data/postgresql.conf  
  3. netstat -antlp |grep 5432/11780  
  4. kill -15/9 pid  
  5. kill -INT 'head -i /home/sequoiadb/pgsql/pg_data/postgresqlmaster.pid'  
  6. http://www.php100.com/manual/PostgreSQL8/  

 http://www.php100.com/manual/PostgreSQL8/

Sql代码   收藏代码
  1. /Volumes/pgAdmin3/pgAdmin3.app/Contents/SharedSupport/pg_dump --host 121.42. *.*--port 5432 --username "postgres" --no-password  --format custom --verbose --file "schemaName" "dbName"  

 

Java代码   收藏代码
  1. /Volumes/pgAdmin3/pgAdmin3.app/Contents/SharedSupport/pg_restore --host ip --port 11780 --username "sdbadmin" --dbname "foo" --no-password  --schema lfchat --verbose "/Users/jade/Documents/lfchat_of_postgresql_5432"  

 

Java代码   收藏代码
  1. postgres@iZ2893a7a8cZ:/usr/local/postgresql/bin$ ./pg_dump -n lfchat -d postgres -hlocalhost -p5432 -w -f ./postgresql.dump  
  2. postgres@iZ2893a7a8cZ:/usr/local/postgresql/bin$ ls  
  3. clusterdb   createuser  dropuser  logfile            pg_basebackup  pg_controldata  pg_dumpall      pg_resetxlog  pg_test_fsync   pg_xlogdump      postmaster  vacuumdb  
  4. createdb    dropdb      ecpg      oid2name           pgbench        pg_ctl          pg_isready      pg_restore    pg_test_timing  postgres         psql        vacuumlo  
  5. createlang  droplang    initdb    pg_archivecleanup  pg_config      pg_dump         pg_receivexlog  pg_standby    pg_upgrade      postgresql.dump  reindexdb  
  6. postgres@iZ2893a7a8cZ:/usr/local/postgresql/bin$   
相关实践学习
使用PolarDB和ECS搭建门户网站
本场景主要介绍基于PolarDB和ECS实现搭建门户网站。
阿里云数据库产品家族及特性
阿里云智能数据库产品团队一直致力于不断健全产品体系,提升产品性能,打磨产品功能,从而帮助客户实现更加极致的弹性能力、具备更强的扩展能力、并利用云设施进一步降低企业成本。以云原生+分布式为核心技术抓手,打造以自研的在线事务型(OLTP)数据库Polar DB和在线分析型(OLAP)数据库Analytic DB为代表的新一代企业级云原生数据库产品体系, 结合NoSQL数据库、数据库生态工具、云原生智能化数据库管控平台,为阿里巴巴经济体以及各个行业的企业客户和开发者提供从公共云到混合云再到私有云的完整解决方案,提供基于云基础设施进行数据从处理、到存储、再到计算与分析的一体化解决方案。本节课带你了解阿里云数据库产品家族及特性。
相关文章
|
关系型数据库 PostgreSQL
PostgreSQL pg_ctl start超时分析
PostgreSQL pg_ctl start超时分析
124 0
|
关系型数据库 分布式数据库 PolarDB
|
关系型数据库 分布式数据库 定位技术
PolarDB for PostgreSQL 开源必读手册-VACUUM处理(中)
PolarDB for PostgreSQL 开源必读手册-VACUUM处理
130 0
|
关系型数据库 分布式数据库 PolarDB
《阿里云产品手册2022-2023 版》——PolarDB for PostgreSQL
《阿里云产品手册2022-2023 版》——PolarDB for PostgreSQL
334 0
|
存储 缓存 关系型数据库
|
存储 SQL 并行计算
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍(中)
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍
383 0
|
存储 算法 安全
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍(下)
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍
349 0
|
关系型数据库 分布式数据库 开发工具
|
存储 关系型数据库 Linux
PolarDB for PostgreSQL 开源必读手册-PolarDB安装与配置(下)
PolarDB for PostgreSQL 开源必读手册-PolarDB安装与配置
582 0
|
存储 SQL 关系型数据库