{"Entry":{"collection":"func","key":"var-samp","name":"var_samp","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.2"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"fe315c336dde104d6757a99c687b3b4939d802e22968329396646d8fa7e87ff2","first_version":"8.2","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-27T17:57:28.983611+08:00","last_version":"20","name":"var_samp","name_key":"var_samp","position":21054,"present_in":["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"],"signature":"var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric","signature_count":1,"slug":"var-samp","source_rev":"b7bd9cda","summary":"Computes the sample variance of the input values (square of the sample standard deviation).","summary_zh":""}},"Definition":{"Collection":"func","Key":"var-samp","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"var-samp","SourceRevision":"b7bd9cda","Facts":{"description":"Computes the sample variance of the input values (square of the sample standard deviation).","description_html":"Computes the sample variance of the input values (square of the sample standard deviation).","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-AGGREGATE-STATISTICS-TABLE","file":"functions-aggregate.html","slug":"18"},"group":"aggregate","group_label":"Aggregate Functions","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Computes the sample variance of the input values (square of the sample standard deviation).","description_html":"Computes the sample variance of the input values (square of the sample standard deviation).","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003evar_samp\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e for \u003ccode class=\"type\"\u003ereal\u003c/code\u003e or \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e, otherwise \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","returns":"","text":"var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-STATISTICS-TABLE","file":"functions-aggregate.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"var-samp","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"var_samp","Summary":"计算输入值的样本方差（样本标准差的平方）。","BodyHTML":"计算输入值的样本方差（样本标准差的平方）。\u003cpre\u003evar_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric\u003c/pre\u003e计算输入值的样本方差（样本标准差的平方）。","SourceRevision":"1b5ca64c","ContentHash":"9be94550a4ca2804bd797f96c82a2b835fa8d65628ba1c92879f2660ab7541e6","Payload":{"description_zh":"计算输入值的样本方差（样本标准差的平方）。","description_zh_html":"计算输入值的样本方差（样本标准差的平方）。","signatures":[{"description_zh":"计算输入值的样本方差（样本标准差的平方）。","description_zh_html":"计算输入值的样本方差（样本标准差的平方）。","returns":"","text":"var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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":"fb14b9876718a85f98f836dcd3bf32aa6b51739c6642cf782654617bd6142856","Text":"var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric","Returns":"","Payload":{"description":"Computes the sample variance of the input values (square of the sample standard deviation).","description_html":"Computes the sample variance of the input values (square of the sample standard deviation).","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003evar_samp\u003c/code\u003e ( \u003cem class=\"replaceable\"\u003e\u003ccode\u003enumeric_type\u003c/code\u003e\u003c/em\u003e ) → \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e for \u003ccode class=\"type\"\u003ereal\u003c/code\u003e or \u003ccode class=\"type\"\u003edouble precision\u003c/code\u003e, otherwise \u003ccode class=\"type\"\u003enumeric\u003c/code\u003e","returns":"","text":"var_samp ( numeric_type ) → double precision for real or double precision, otherwise numeric","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
