{"Entry":{"collection":"psql","key":"cmd-73-76","name":"\\sv","aliases":["\\sv","\\sv+"],"metadata":{"aliases":["\\sv","\\sv+"],"category":"Query buffer and editing","content_hash":"35f958d2afbd5de7feb24a7d3aca4f2561c671da8ff9e9b7f259751d3a7e3329","derived_content_hash":"2f729defa0e4d8c454c24dea7b02dc3cb7d14f77d924a0b5d3fa011da8d09187","documentation_refresh":{"batch":"20261113","original_source_rev":"","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"imported_at":"2026-09-30T00:40:45.199873+08:00","name":"\\sv","name_zh":"","slug":"cmd-73-76","summary":"This command fetches and shows the definition of the named view, in the form of a CREATE OR REPLACE VIEW command. The definition is printed to the current query output channel, as set by \\o ."}},"Definition":{"Collection":"psql","Key":"cmd-73-76","SourceDatabase":"center","Version":"18","SourceTable":"psql_command","SourceKey":"cmd-73-76","SourceRevision":"1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915","Facts":{"command":"\\sv","comparison_data":{"definition":"This command fetches and shows the definition of the named view, in the form of a CREATE OR REPLACE VIEW command. The definition is printed to the current query output channel, as set by \\o . If + is appended to the command name, then the output lines are numbered from 1. Unlike most other meta-commands, the entire remainder of the line is always taken to be the argument(s) of \\sv , and neither variable interpolation nor backquote expansion are performed in the arguments.","modifiers":[{"command":"\\sv","modifiers":"+"}],"signature":"\\sv[+] view_name","spellings":["\\sv"]},"comparison_hash":"79987eb77e7d5f486e7a963a90b85132330a69fd6360f2e3d24140a75eaa477c","description":["This command fetches and shows the definition of the named view, in the form of a CREATE OR REPLACE VIEW command. The definition is printed to the current query output channel, as set by \\o ."],"description_zh":"这个命令获取指定视图的定义，并以 CREATE OR REPLACE VIEW 命令的形式显示。定义会打印到由 \\o 设置的当前查询输出通道。","description_zh_html":"\u003cdd\u003e\u003cp\u003e\n          这个命令获取指定视图的定义，并以 \u003ccode class=\"command\"\u003eCREATE OR REPLACE VIEW\u003c/code\u003e 命令的形式显示。定义会打印到由\u003ccode class=\"command\"\u003e\\o\u003c/code\u003e 设置的当前查询输出通道。\n         \u003c/p\u003e\u003cp\u003e\n          如果在命令名称后添加\u003ccode class=\"literal\"\u003e+\u003c/code\u003e，那么输出行将从 1 开始编号。\n         \u003c/p\u003e\u003cp\u003e\n        与大多数其他元命令不同，整个行的剩余部分始终被视为\u003ccode class=\"command\"\u003e\\sv\u003c/code\u003e 的参数，参数中不进行变量插值或反引号扩展。\n        \u003c/p\u003e\u003c/dd\u003e","documentation_revision":{"inputs":[{"file":"app-psql.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"af50448485df02bdef2b72b8347192ba029c7082b8d0392ecb17db44ad533aaf","version":"18.7"},{"file":"app-psql.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"cb475c53a16d9e06358f5e6c9c5649645db92568cfd319f230c62c9f57ae090b","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"facts":[{"label":"Client","value":"psql 18.7"},{"label":"Case-sensitive spelling","value":"\\sv"}],"facts_zh":[{"label":"客户端","value":"psql 18.7"},{"label":"区分大小写的写法","value":"\\sv"}],"localization":{"documentation_release":"18.7","language":"en","source_language":"en","source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552","status":"same-version-reviewed-manual"},"manual_html":"\u003cdiv\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt id=\"APP-PSQL-META-COMMAND-SV\"\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003e\\sv[+] \u003cem class=\"replaceable\"\u003e\u003ccode\u003eview_name\u003c/code\u003e\u003c/em\u003e \u003c/code\u003e\u003c/span\u003e \u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n          This command fetches and shows the definition of the named view,\n          in the form of a \u003ccode class=\"command\"\u003eCREATE OR REPLACE VIEW\u003c/code\u003e command.\n          The definition is printed to the current query output channel,\n          as set by \u003ccode class=\"command\"\u003e\\o\u003c/code\u003e.\n         \u003c/p\u003e\u003cp\u003e\n          If \u003ccode class=\"literal\"\u003e+\u003c/code\u003e is appended to the command name, then the\n          output lines are numbered from 1.\n         \u003c/p\u003e\u003cp\u003e\n        Unlike most other meta-commands, the entire remainder of the line is\n        always taken to be the argument(s) of \u003ccode class=\"command\"\u003e\\sv\u003c/code\u003e, and neither\n        variable interpolation nor backquote expansion are performed in the\n        arguments.\n        \u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","manual_path":"app-psql.html#APP-PSQL-META-COMMAND-SV","modifiers":[{"command":"\\sv","modifiers":"+"}],"related":[{"label":"psql command-line options and complete manual","url":"/wiki/tool/psql/?v=18"}],"related_zh":[{"label":"psql 命令行选项及完整手册","url":"/wiki/tool/psql/?v=18"}],"release":{"channel":"stable","evidence_kind":"English manual and source declarations","label":"18.7","major":"18","manifest":{"major":"18","release":"18.7","source_sha256":"441dfae4280cae3e0425e5f876f80559fb0731c140f1aae22b3e5a54d0411bfd","source_url":"https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2"},"ref":"https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2","revision":"1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915","source_sha256":"441dfae4280cae3e0425e5f876f80559fb0731c140f1aae22b3e5a54d0411bfd"},"sections":[],"sections_zh":[],"signature":"\\sv[+] view_name","sources":[{"anchor":"APP-PSQL-META-COMMAND-SV","file":"app-psql.html","label":"18.7 English manual · app-psql.html","sha256":"af50448485df02bdef2b72b8347192ba029c7082b8d0392ecb17db44ad533aaf","url":"/docs/18/app-psql.html#APP-PSQL-META-COMMAND-SV"}],"spellings":["\\sv"],"tables":[{"columns":[{"key":"command","label":"Command"},{"key":"modifiers","label":"Documented suffix modifiers"}],"key":"spellings","rows":[{"command":{"text":"\\sv","url":"/wiki/psql/cmd-73-76/?v=18"},"modifiers":"+"}],"title":"Spellings in this manual definition"}],"tables_zh":[{"columns":[{"key":"command","label":"命令"},{"key":"modifiers","label":"手册中的后缀修饰符"}],"key":"spellings","rows":[{"command":{"text":"\\sv","url":"/wiki/psql/cmd-73-76/?v=18"},"modifiers":"+"}],"title":"本版手册中的写法"}],"zh_from":"same-version-manual"},"ManualEvidence":{"manual_path":"app-psql.html#APP-PSQL-META-COMMAND-SV","release":{"channel":"stable","evidence_kind":"English manual and source declarations","label":"18.7","major":"18","manifest":{"major":"18","release":"18.7","source_sha256":"441dfae4280cae3e0425e5f876f80559fb0731c140f1aae22b3e5a54d0411bfd","source_url":"https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2"},"ref":"https://ftp.postgresql.org/pub/source/v18.7/postgresql-18.7.tar.bz2","revision":"1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915","source_sha256":"441dfae4280cae3e0425e5f876f80559fb0731c140f1aae22b3e5a54d0411bfd"},"sources":[{"anchor":"APP-PSQL-META-COMMAND-SV","file":"app-psql.html","label":"18.7 English manual · app-psql.html","sha256":"af50448485df02bdef2b72b8347192ba029c7082b8d0392ecb17db44ad533aaf","url":"/docs/18/app-psql.html#APP-PSQL-META-COMMAND-SV"}]},"MeasuredEvidence":{}},"Text":{"Collection":"psql","Key":"cmd-73-76","SourceDatabase":"center","Version":"18","Locale":"en","Title":"\\sv","Summary":"This command fetches and shows the definition of the named view, in the form of a CREATE OR REPLACE VIEW command. The definition is printed to the current query output channel, as set by \\o .","BodyHTML":"\u003cdiv\u003e\u003cdl\u003e\u003cdt id=\"APP-PSQL-META-COMMAND-SV\"\u003e\u003cspan\u003e\u003ccode\u003e\\sv[+] \u003cem\u003e\u003ccode\u003eview_name\u003c/code\u003e\u003c/em\u003e \u003c/code\u003e\u003c/span\u003e \u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n          This command fetches and shows the definition of the named view,\n          in the form of a \u003ccode\u003eCREATE OR REPLACE VIEW\u003c/code\u003e command.\n          The definition is printed to the current query output channel,\n          as set by \u003ccode\u003e\\o\u003c/code\u003e.\n         \u003c/p\u003e\u003cp\u003e\n          If \u003ccode\u003e+\u003c/code\u003e is appended to the command name, then the\n          output lines are numbered from 1.\n         \u003c/p\u003e\u003cp\u003e\n        Unlike most other meta-commands, the entire remainder of the line is\n        always taken to be the argument(s) of \u003ccode\u003e\\sv\u003c/code\u003e, and neither\n        variable interpolation nor backquote expansion are performed in the\n        arguments.\n        \u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","SourceRevision":"1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915","ContentHash":"434f54be8accd00022640efd2b7d4d8668a05cab300365f72bfc98ff62ed64fe","Payload":{"description":["This command fetches and shows the definition of the named view, in the form of a CREATE OR REPLACE VIEW command. The definition is printed to the current query output channel, as set by \\o ."],"manual_html":"\u003cdiv\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt id=\"APP-PSQL-META-COMMAND-SV\"\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003e\\sv[+] \u003cem class=\"replaceable\"\u003e\u003ccode\u003eview_name\u003c/code\u003e\u003c/em\u003e \u003c/code\u003e\u003c/span\u003e \u003c/dt\u003e\u003cdd\u003e\u003cp\u003e\n          This command fetches and shows the definition of the named view,\n          in the form of a \u003ccode class=\"command\"\u003eCREATE OR REPLACE VIEW\u003c/code\u003e command.\n          The definition is printed to the current query output channel,\n          as set by \u003ccode class=\"command\"\u003e\\o\u003c/code\u003e.\n         \u003c/p\u003e\u003cp\u003e\n          If \u003ccode class=\"literal\"\u003e+\u003c/code\u003e is appended to the command name, then the\n          output lines are numbered from 1.\n         \u003c/p\u003e\u003cp\u003e\n        Unlike most other meta-commands, the entire remainder of the line is\n        always taken to be the argument(s) of \u003ccode class=\"command\"\u003e\\sv\u003c/code\u003e, and neither\n        variable interpolation nor backquote expansion are performed in the\n        arguments.\n        \u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","related":[{"label":"psql command-line options and complete manual","url":"/wiki/tool/psql/?v=18"}],"sections":[],"tables":[{"columns":[{"key":"command","label":"Command"},{"key":"modifiers","label":"Documented suffix modifiers"}],"key":"spellings","rows":[{"command":{"text":"\\sv","url":"/wiki/psql/cmd-73-76/?v=18"},"modifiers":"+"}],"title":"Spellings in this manual definition"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":[{"Version":"18","Ordinal":0,"Command":"\\sv","Signature":"\\sv[+] view_name","Modifiers":[{"command":"\\sv","modifiers":"+"}]}],"SQLState":null,"Evidence":null}
