{"Entry":{"collection":"func","key":"cume-dist","name":"cume_dist","aliases":[],"metadata":{"changed_in":["9.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.3","group_changed":{"from":"window","to":"aggregate"},"signatures":{"added":["cume_dist ( args ) WITHIN GROUP (ORDER BY sorted_args) → double precision"],"removed":[]},"status":"changed","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"0ef9923cf96b926c7594d364d3866185a6a4a5187944854d154b006a560a5a44","derived_content_hash":"d73a417fcf04cbfab8e5b37527d1eb9052461b68b0ba664e04a066bda6c4dc98","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:21bc82a0d314b808f0a68802f8e4339eb2d52d9cc764ef8a3d4f3708b8b8d712","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.4","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate","window"],"imported_at":"2026-09-27T17:57:28.922005+08:00","last_version":"20","name":"cume_dist","name_key":"cume_dist","position":21012,"present_in":["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":"b7bd9cda","receipt_sha256":"db8d1f800b35e6ed0d684ae2fb4c3aad7c75c12c321abd13205ba5a631da3010","repair":"wiki-repair-20261023"},"signature":"cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision","signature_count":2,"slug":"cume-dist","source_rev":"wiki-repair-20261023:21bc82a0d314b808f0a68802f8e4339eb2d52d9cc764ef8a3d4f3708b8b8d712","summary":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows).","summary_zh":""}},"Definition":{"Collection":"func","Key":"cume-dist","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"cume-dist","SourceRevision":"wiki-repair-20261023:21bc82a0d314b808f0a68802f8e4339eb2d52d9cc764ef8a3d4f3708b8b8d712","Facts":{"description":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/N to 1.","description_html":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/N 到 1。","description_zh_html":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","doc":{"anchor":"FUNCTIONS-HYPOTHETICAL-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","version":"18.7"},{"file":"functions-window.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"439ef40b6ad39f35f5b4543f2cf5766744ce6b7a8c5c75c0b4c0a7c27cbb7574","version":"18.7"},{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"0bf7506d27b71666fc74840a21a8f77c8a92735174f1d05033865961722e457c","version":"18.7"},{"file":"functions-window.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"cf993ee76845c3f6c445b1045d674ce10d648125a8444e263a13384ed0e268f0","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"aggregate","group_label":"聚合函数","lang":"en","layout":"table-new","pages":["functions-aggregate.html","functions-window.html"],"prose_only":false,"signatures":[{"description":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/N to 1.","description_html":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/N 到 1。","description_zh_html":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","examples":[],"html":"\u003ccode class=\"function\"\u003ecume_dist\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003eargs\u003c/code\u003e\u003c/em\u003e ) \u003ccode class=\"literal\"\u003eWITHIN GROUP\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003esorted_args\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision","zh_from":"same-version-manual"},{"description":"Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/N to 1.","description_html":"Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"返回累积分布，也就是(当前行之前或与当前行同等的分区行数)/(总的分区行数)。取值范围为 1/N 到 1。","description_zh_html":"返回累积分布，也就是(当前行之前或与当前行同等的分区行数)/(总的分区行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","examples":[],"html":"\u003ccode class=\"function\"\u003ecume_dist\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"cume_dist () → double precision","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-aggregate.html","sha256":"68da7af09e2749a855188bbbff99ae036fc7eece4e19b8e048baffd28aa3ca59"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-HYPOTHETICAL-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"cume-dist","SourceDatabase":"center","Version":"18","Locale":"en","Title":"cume_dist","Summary":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/N to 1.","BodyHTML":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/\u003cem\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","SourceRevision":"wiki-repair-20261023:21bc82a0d314b808f0a68802f8e4339eb2d52d9cc764ef8a3d4f3708b8b8d712","ContentHash":"6fbb232f325c49befde04fb13516718d801fdd90d284106c42ad6eb6f7998e32","Payload":{"description":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/N to 1.","description_html":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","signatures":[{"description":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/N to 1.","description_html":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/N 到 1。","description_zh_html":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","examples":[],"html":"\u003ccode class=\"function\"\u003ecume_dist\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003eargs\u003c/code\u003e\u003c/em\u003e ) \u003ccode class=\"literal\"\u003eWITHIN GROUP\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003esorted_args\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision","zh_from":"same-version-manual"},{"description":"Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/N to 1.","description_html":"Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"返回累积分布，也就是(当前行之前或与当前行同等的分区行数)/(总的分区行数)。取值范围为 1/N 到 1。","description_zh_html":"返回累积分布，也就是(当前行之前或与当前行同等的分区行数)/(总的分区行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","examples":[],"html":"\u003ccode class=\"function\"\u003ecume_dist\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"cume_dist () → double precision","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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":"f8901e3fb4fbe61f6627ddd0e88477ac99629f9474e55e1538136065198394de","Text":"cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision","Returns":"double precision","Payload":{"description":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/N to 1.","description_html":"Computes the cumulative distribution, that is (number of rows preceding or peers with hypothetical row) / (total rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/N 到 1。","description_zh_html":"计算累积分布，也就是(位于假设行之前或与假设行同等的行数)/(总行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","examples":[],"html":"\u003ccode class=\"function\"\u003ecume_dist\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003eargs\u003c/code\u003e\u003c/em\u003e ) \u003ccode class=\"literal\"\u003eWITHIN GROUP\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003cem class=\"replaceable\"\u003e\u003ccode\u003esorted_args\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"cume_dist ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → double precision","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"db9c819b017d65ed728c2279a83b7e425694198d7c2a368bcedacce43a2e6268","Text":"cume_dist () → double precision","Returns":"double precision","Payload":{"description":"Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/N to 1.","description_html":"Returns the cumulative distribution, that is (number of partition rows preceding or peers with current row) / (total partition rows). The value thus ranges from 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e to 1.","description_zh":"返回累积分布，也就是(当前行之前或与当前行同等的分区行数)/(总的分区行数)。取值范围为 1/N 到 1。","description_zh_html":"返回累积分布，也就是(当前行之前或与当前行同等的分区行数)/(总的分区行数)。取值范围为 1/\u003cem class=\"parameter\"\u003e\u003ccode\u003eN\u003c/code\u003e\u003c/em\u003e 到 1。","examples":[],"html":"\u003ccode class=\"function\"\u003ecume_dist\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003edouble precision\u003c/code\u003e","returns":"double precision","text":"cume_dist () → double precision","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
