postgresql start shutdown

简介:
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超时分析
417 0
|
6月前
|
存储 关系型数据库 测试技术
拯救海量数据:PostgreSQL分区表性能优化实战手册(附压测对比)
本文深入解析PostgreSQL分区表的核心原理与优化策略,涵盖性能痛点、实战案例及压测对比。首先阐述分区表作为继承表+路由规则的逻辑封装,分析分区裁剪失效、全局索引膨胀和VACUUM堆积三大性能杀手,并通过电商订单表崩溃事件说明旧分区维护的重要性。接着提出四维设计法优化分区策略,包括时间范围分区黄金法则与自动化维护体系。同时对比局部索引与全局索引性能,展示后者在特定场景下的优势。进一步探讨并行查询优化、冷热数据分层存储及故障复盘,解决分区锁竞争问题。
779 2
|
关系型数据库 分布式数据库 PolarDB
|
关系型数据库 分布式数据库 数据库
|
关系型数据库 分布式数据库 定位技术
PolarDB for PostgreSQL 开源必读手册-VACUUM处理(中)
PolarDB for PostgreSQL 开源必读手册-VACUUM处理
417 0
|
关系型数据库 分布式数据库 PolarDB
《阿里云产品手册2022-2023 版》——PolarDB for PostgreSQL
《阿里云产品手册2022-2023 版》——PolarDB for PostgreSQL
561 0
|
存储 缓存 关系型数据库
|
存储 SQL 并行计算
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍(中)
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍
682 0
|
存储 算法 安全
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍(下)
PolarDB for PostgreSQL 开源必读手册-开源PolarDB for PostgreSQL架构介绍
576 0
|
关系型数据库 分布式数据库 开发工具

推荐镜像

更多