postgresql操作手册postgresql操作手册 前言: 1.蓝色字体表示命令行命令,正式执行时不要复制前面的#号,#号只是提示应 该使用root权限操作 2.绿色字体表示注释,有时注释太多就不用绿色表示了 3.注意:本文档的所有操作请先在测试机里进行实践,请不要直接在真实的服 务器中操作! 版权声明: 本文档以开源的形式发布,所有条款如下: (1)无担保:作者不保证文档内容的准确无误,亦不承担由于使用此文档所导致的任何后果 的schema下的pg_user表里: ★第5章、使用客户端连接 ①命令行客户端连接pg数据库 # psql -h 10.99.1.122 -p 5432 -U postgres #连接pg数据库, # -h指定地址,-p指定端口号,-U指定用户(默认为当前shell用户名),-W指定 用户密码, # -d指定数据库,默认连接的数据库名同用户名 Password postgres template1 template0 db_test postgres=# \l #列出所有数据库(pg内置查询命令) List of databases Name | Owner | Encoding | Collate0 码力 | 17 页 | 445.84 KB | 1 年前3
 实现PostgreSQL逻辑复制实战的行,将为所有被修 改的行调用change_cb回调。 一个事务中的每一个行修改,都将调用 必须提供的 change_cb回调,这种修改可 能是一个 INSERT、UPDATE或者 DELETE。 即使原始命令一次修改了多行,该回调 也会 为其中的每一行调用一次。 2016Postgres中国用户大会 Postgres Conference China 2016 中国用户大会 如何使用逻辑复制0 码力 | 17 页 | 1.90 MB | 1 年前3
 PostgreSQL 16.1 Documentationexecution plans of slow queries ...................................... 2803 F.5. basebackup_to_shell — example "shell" pg_basebackup module ...................... 2806 F.6. basic_archive — an example WAL archive old monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, provided new Tcl commands to interface Tcl programs with the Postgres95 server. • The large-object taken literally. Where it enhances the clarity, SQL commands are preceded by the prompt =>, and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator0 码力 | 3133 页 | 14.10 MB | 1 年前3
 PostgreSQL 16.1 Documentationexecution plans of slow queries ................................. 2660 F.5. basebackup_to_shell — example "shell" pg_basebackup module ................. 2663 F.6. basic_archive — an example WAL archive old monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, pro- vided new Tcl commands to interface Tcl programs with the Postgres95 server. 2 https://www taken literally. Where it enhances the clarity, SQL commands are preceded by the prompt =>, and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator0 码力 | 2974 页 | 14.22 MB | 1 年前3
 PostgreSQL 8.0 Documentationold monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, provided new Tcl commands to interface Tcl programs with the Postgres95 server. • The large-object can be repeated. Where it enhances the clarity, SQL commands are preceded by the prompt => , and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator mydb=> \h To get out of psql, type mydb=> \q and psql will quit and return you to your command shell. (For more internal commands, type \? at the psql prompt.) The full capabilities of psql are documented0 码力 | 1422 页 | 9.92 MB | 1 年前3
 PostgreSQL 8.0 Documentationold monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, pro- vided new Tcl commands to interface Tcl programs with the Postgres95 server. • The repeated. iii Preface Where it enhances the clarity, SQL commands are preceded by the prompt => , and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator type mydb=> \q 4 Chapter 1. Getting Started and psql will quit and return you to your command shell. (For more internal commands, type \? at the psql prompt.) The full capabilities of psql are documented0 码力 | 1332 页 | 9.76 MB | 1 年前3
 PostgreSQL 17beta1 A4 Documentationexecution plans of slow queries ................................. 2702 F.4. basebackup_to_shell — example "shell" pg_basebackup module ................. 2705 F.5. basic_archive — an example WAL archive old monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, pro- vided new Tcl commands to interface Tcl programs with the Postgres95 server. 2 https://www taken literally. Where it enhances the clarity, SQL commands are preceded by the prompt =>, and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator0 码力 | 3017 页 | 14.45 MB | 1 年前3
 PostgreSQL 17beta1 US Documentationexecution plans of slow queries ...................................... 2858 F.4. basebackup_to_shell — example "shell" pg_basebackup module ...................... 2861 xx PostgreSQL 17beta1 Documentation old monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, provided new Tcl commands to interface Tcl programs with the Postgres95 server. • The large-object taken literally. Where it enhances the clarity, SQL commands are preceded by the prompt =>, and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator0 码力 | 3188 页 | 14.32 MB | 1 年前3
 PostgreSQL 8.1.11 Documentationold monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, provided new Tcl commands to interface Tcl programs with the Postgres95 server. • The large-object can be repeated. Where it enhances the clarity, SQL commands are preceded by the prompt => , and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator mydb=> \h To get out of psql, type mydb=> \q and psql will quit and return you to your command shell. (For more internal commands, type \? at the psql prompt.) The full capabilities of psql are documented0 码力 | 1582 页 | 12.19 MB | 1 年前3
 PostgreSQL 8.1 Documentationold monitor program. • A new front-end library, libpgtcl, supported Tcl-based clients. A sample shell, pgtclsh, provided new Tcl commands to interface Tcl programs with the Postgres95 server. • The large-object can be repeated. Where it enhances the clarity, SQL commands are preceded by the prompt => , and shell commands are preceded by the prompt $. Normally, prompts are not shown, though. An administrator mydb=> \h To get out of psql, type mydb=> \q and psql will quit and return you to your command shell. (For more internal commands, type \? at the psql prompt.) The full capabilities of psql are documented0 码力 | 1548 页 | 11.54 MB | 1 年前3
共 42 条
- 1
 - 2
 - 3
 - 4
 - 5
 













