\!
With no argument, escapes to a sub-shell; psql resumes when the sub-shell exits. With an argument, executes the shell command command .
当前阅读 PG 18·选择有来源记录的版本
此版本暂无所选语言的定义,以下显示原始英文内容。
- Client
- psql 18.6
- Case-sensitive spelling
- \!
- command
- \!
- manual path
- app-psql.html#APP-PSQL-META-COMMAND-EXCLAMATION-MARK
- modifiers
- 未知
- signature
- \! [ command ]
- spellings
- \!
版本定义 PG 18
\! [command]-
With no argument, escapes to a sub-shell; psql resumes when the sub-shell exits. With an argument, executes the shell command
command.Unlike most other meta-commands, the entire remainder of the line is always taken to be the argument(s) of
\!, and neither variable interpolation nor backquote expansion are performed in the arguments. The rest of the line is simply passed literally to the shell.
精确保留大小写的命令写法
\!
Spellings in this manual definition
| Command | Documented suffix modifiers |
|---|---|
| \! | None listed in this signature |
比较版本
来源引用
定义来源
center · PostgreSQL 18 · ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
正文语言: en · ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8