pdf文档 PostgreSQL 9.3.25 Documentation

7.47 MB 3002 页 0 评论
语言 格式 评分
英语
.pdf
3
摘要
The PostgreSQL 9.3.25 documentation provides an overview of new features and improvements in the release. Key enhancements include the addition of materialized views, JSON data type support with extraction functions, SQL-standard LATERAL option, and write support for foreign tables. The release also introduces event triggers and optional data page checksums. Migration to 9.3 requires a dump/restore process and includes compatibility changes such as server settings updates and incompatibilities with previous versions. The document also covers functions and operators, including configuration settings and server signaling functions, as well as basic psql commands like SELECT version() and internal commands like \h for help.
AI总结
《PostgreSQL 9.3.25 Documentation》总结如下: --- ### 1. **版权与免责声明** - PostgreSQL 9.3.25 由 PostgreSQL 全球开发团队发布,版权所有 1996-2018。 - 软件及文档免费使用、复制、修改和分发,但需保留版权声明。 - University of California 不对软件的使用负责,不提供任何明示或暗示的保证。 --- ### 2. **PostgreSQL 9.3.25 概述** - PostgreSQL 9.3.25 是一个功能强大的开源关系数据库管理系统。 - 支持标准 SQL 和扩展功能,适合复杂的数据库应用场景。 --- ### 3. **安装与使用** - **psql**: PostgreSQL 的交互式终端工具。 - 启动 psql:`psql -U username -d dbname`。 - 退出 psql:输入 `\q`。 - 内部命令:以 `\` 开头,如 `\h` 查看 SQL 命令语法,`\?` 查看所有内部命令。 - 示例: ```sql mydb=> SELECT version(); -- 输出:PostgreSQL 9.3.25 on i586-pc-linux-gnu, compiled by GCC 2.96, 32-bit ``` --- ### 4. **PostgreSQL 9.3 主要新特性** - **物化视图(Materialized Views)**:允许物理存储查询结果。 - **自动可更新简单视图(Auto-updatable Simple Views)**。 - **JSON 数据类型**:新增运算符和函数,支持从 JSON 值中提取元素。 - **SQL 标准 LATERAL 选项**:用于 FROM 子句中的子查询和函数调用。 - **外部数据包装器**:支持写操作(插入、更新、删除)和访问其他 PostgreSQL 服务器。 - **事件触发器**:支持在特定事件发生时触发函数。 - **数据校验**:可选功能,校验数据页面并报告损坏。 - **共享内存优化**:减少 System V 共享内存需求。 --- ### 5. **迁移指南** - **迁移要求**:从旧版本迁移到 9.3 需要使用 `pg_dumpall` 或 `pg_upgrade`。 - **兼容性变化**: - 更改 `replication_timeout` 为 `wal_sender_timeout`。 - 设置 `commit_delay` 需超用户权限。 - 内存排序使用完整内存分配,可能需要调整 `work_mem` 设置。 - 更新或删除已被 BEFORE 触发器修改的行会报错。 --- ### 6. **函数与操作符** - **逻辑运算符**:支持 AND、OR、NOT,使用三值逻辑系统(TRUE、FALSE、NULL)。 - **比较运算符**:包括常见的 `=`, `<>`, `>`, `<`, `>=` 等。 - **系统管理函数**: - `current_setting(setting_name)`: 查询配置参数值。 - `set_config(setting_name, new_value, is_local)`: 设置参数值。 - 示例: ```sql SELECT current_setting('datestyle'); -- 输出:ISO, MDY SELECT set_config('log_statement_stats', 'off', false); ``` --- ### 7. **历史版本更新日志** - **9.1.1**: 修复小范围问题,如pg_options_to_table返回NULL以避免崩溃。 - **9.1**: 新增特性: - 同步复制、外表支持、列级排序规则、扩展功能、可序列化隔离级别、未记录表等。 --- 以上为文档的核心内容总结,涵盖了 PostgreSQL 9.3.25 的主要功能、使用方法、版本更新和迁移指南。
P1
P2
P3
P4
P5
P6
P7
下载文档到本地,方便使用
- 可预览页数已用完,剩余 2995 页请下载阅读 -
文档评分
请文明评论,理性发言.