{"Entry":{"collection":"func","key":"pg-ls-dir","name":"pg_ls_dir","aliases":[],"metadata":{"changed_in":["9.5"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":["pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text"],"removed":["pg_ls_dir ( dirname text ) → setof text"]},"status":"changed","to":"9.5"},{"descriptions_changed":true,"doc_overhaul":false,"from":"10","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"11"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"9b1bca434d0f59af55d1cf652bc8891fe63750bbe6334e7ed84d6520d2b7dae7","derived_content_hash":"9dcd25585d116a91e52f0d8c0f3dd83fe53b8c28bdf300f82a01cc760c7b506c","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:e80d580d4a5ce059b476c3698a1886446027729fd5a2ce9d6e2b95dfe2e03164","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.1","group":"admin","group_label":"System Administration Functions","groups":["admin"],"imported_at":"2026-09-27T17:57:29.573438+08:00","last_version":"20","name":"pg_ls_dir","name_key":"pg_ls_dir","position":29062,"present_in":["8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:cef93f9999b99f80274b66c2ca8353270419d96759fb7205d40585f5e649b84e","receipt_sha256":"c9e61750d00ca3d9f8e1f9444b7f65751ef8a861cdb608198a9a3e8350383d46","repair":"wiki-repair-20261023"},"signature":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean ] ) → setof text","signature_count":1,"slug":"pg-ls-dir","source_rev":"wiki-repair-20261023:e80d580d4a5ce059b476c3698a1886446027729fd5a2ce9d6e2b95dfe2e03164","summary":"Returns the names of all files (and directories and other special files) in the specified directory.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-ls-dir","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-ls-dir","SourceRevision":"wiki-repair-20261023:e80d580d4a5ce059b476c3698a1886446027729fd5a2ce9d6e2b95dfe2e03164","Facts":{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs 参数指示结果集中是否包含“.”和“..”；默认不包含它们。在 missing_ok 为 true 时，包含它们有助于区分不存在的目录和空目录。","description_zh_html":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e 参数指示结果集中是否包含\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在 \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e 为 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e 时，包含它们有助于区分不存在的目录和空目录。","doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","version":"18.7"},{"file":"functions-admin.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"830e894d29fec30b7c350c915fcaed4a63b24d57f2c96150bf25fa07fb43849c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"admin","group_label":"系统管理函数","lang":"en","layout":"table-new","pages":["functions-admin.html"],"prose_only":false,"signatures":[{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs 参数指示结果集中是否包含“.”和“..”；默认不包含它们。在 missing_ok 为 true 时，包含它们有助于区分不存在的目录和空目录。","description_zh_html":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e 参数指示结果集中是否包含\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在 \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e 为 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e 时，包含它们有助于区分不存在的目录和空目录。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_ls_dir\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003edirname\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003esetof text\u003c/code\u003e","returns":"setof text","text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-admin.html","sha256":"b4fab9daceb7883fd75b32b6eb5398f2bbbfbbed5c83d1b2bf99cc8d842cdaf7"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-ADMIN-GENFILE-TABLE","file":"functions-admin.html","sha256":"885561d57facd49c33b44a50e320a002197d700d118784cc87d6410efadbd1f6","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-ls-dir","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_ls_dir","Summary":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","BodyHTML":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan\u003e“\u003cspan\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan\u003e“\u003cspan\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","SourceRevision":"wiki-repair-20261023:e80d580d4a5ce059b476c3698a1886446027729fd5a2ce9d6e2b95dfe2e03164","ContentHash":"82674c9b6a2ecd4ab97544104641438aeba883c077862a2be62692518b3de51b","Payload":{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","signatures":[{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs 参数指示结果集中是否包含“.”和“..”；默认不包含它们。在 missing_ok 为 true 时，包含它们有助于区分不存在的目录和空目录。","description_zh_html":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e 参数指示结果集中是否包含\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在 \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e 为 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e 时，包含它们有助于区分不存在的目录和空目录。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_ls_dir\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003edirname\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003esetof text\u003c/code\u003e","returns":"setof text","text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"1bf59c3259470f7eaed0713b5d715d249ef56c66bd0315b2723b53f46bc896a1","Text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text","Returns":"setof text","Payload":{"description":"Returns the names of all files (and directories and other special files) in the specified directory. The include_dot_dirs parameter indicates whether “.” and “..” are to be included in the result set; the default is to exclude them. Including them can be useful when missing_ok is true, to distinguish an empty directory from a non-existent directory.","description_html":"Returns the names of all files (and directories and other special files) in the specified directory. The \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e parameter indicates whether \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e and \u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e are to be included in the result set; the default is to exclude them. Including them can be useful when \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e is \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e, to distinguish an empty directory from a non-existent directory.","description_zh":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。include_dot_dirs 参数指示结果集中是否包含“.”和“..”；默认不包含它们。在 missing_ok 为 true 时，包含它们有助于区分不存在的目录和空目录。","description_zh_html":"返回指定目录中所有文件的名称（包括目录及其他特殊文件）。\u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e 参数指示结果集中是否包含\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e.\u003c/span\u003e”\u003c/span\u003e和\u003cspan class=\"quote\"\u003e“\u003cspan class=\"quote\"\u003e..\u003c/span\u003e”\u003c/span\u003e；默认不包含它们。在 \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e 为 \u003ccode class=\"literal\"\u003etrue\u003c/code\u003e 时，包含它们有助于区分不存在的目录和空目录。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_ls_dir\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003edirname\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003emissing_ok\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003einclude_dot_dirs\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e] ) → \u003ccode class=\"returnvalue\"\u003esetof text\u003c/code\u003e","returns":"setof text","text":"pg_ls_dir ( dirname text [, missing_ok boolean, include_dot_dirs boolean] ) → setof text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
