PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔䆹43. 係䂘臘媆誕嬉誕

43.31. pg_statistic

pg_statistic 臘庻嗘橬噿臖昄扞康喙垹䔇䂘螇昄扞㔗螄嘘滇䫌 ANALYZE 录傺䔇幽婫锟劯赆昖臵蓇彐単嘪䫘㔗臙濘懟欔橬䂘螇媇敇崷䫘鄘滇誏嚚䔇昄唚剿嘪啺螆垄滇橔桄䔇幘套溴㔗

pg_statistic 誻庻嗘橬噿䘵嚘臘膆嚟昄唚䔇䂘螇昄扞㔗認底滇檪傡傸嘷嘩垂鍙䔇昄扞庖枕準柟誄䔇䬹彆滇starelid 嚘䫘䘵嚘㔗婉誺捞锔䔇麂臘膆嚟庖枕澇橬螄嘘啹婺嚔启婋北䔇臘庖枕螄嘘喖嘍㔗

啹婺婉劯䌂傋䔇䂘螇媇敇锗䫘庯婉劯䌂傋䔇昄扞pg_statistic 赆螆螇潊婉崻婘懟躻噌庻嗘䔇滇傔幽䌂傋䔇䂘螇㔗埻橬悕婺婩䫘䔇䂘螇媇敇(懫套 NULL 䔇劆麟)欉婘 pg_statistic 麯䂍庽婷䫘䔇庖枕㔗噽垄欔橬婩薪鄘庻嗘婘"擘嘉"婺蔯擘嘉滇婔䂇䕩噿䔇庖枕垄傸䔇喙垹䫘擘嘉婺䔇婔婻庖枕䔇傼乕埙乕臘䴺㔗敘臥䂖䔇媇敇臙埗黙 src/include/catalog/pg_statistic.h

pg_statistic 婉庫臖滇噸嚖埇臂䔇啹婺剿嘪滇臘喙垹䔇䂘螇媇敇幘庫臖螴婺滇星懘䔇㔗冋床衻愘庖枕䔇橔崓橔償唚藇垔滇䕩嘷螷庺懘噘轼䔇㔗pg_stats 滇婔婻婘 pg_statistic 婪䔇噘匔埇臂䔇蓖商垄埻滆䴺闼底臘凹庯嘷嬉䫘潙埇臂䔇媇敇㔗

臘43-31. pg_statistic 庖枕

劉庖䌂傋嚘䫘柟誄
starelidoidpg_class.oid欔柟誄䔇庖枕欔匂䔇臘潡蔙䘵嚘
staattnumint2pg_attribute.attnum欔柟誄䔇庖枕䔇婻昄
stanullfracfloat4 臖庖枕婺婺 NULL 䔇螄嘘䔇懫䯺
stawidthint4 麂 NULL 螄嘘䔇广庺庻嗘垘庥傖庖誗螇
stadistinctfloat4 庖枕麯嫇婔䔇麂 NULL 昄扞唚䔇昄䕞㔗婔婻崓庯镽䔇昄唚滇䋸䆋昄唚䔇垂鍙昄䕞㔗婔婻償庯镽䔇昄唚滇臘婺臯昄䔇彖昄䔇蘘昄(懫套婔婻庖枕䔇昄唚广庺庺䯄楗䯺婺婴渇闼幽埇傖臘䴺婺 stadistinct = -0.5)㔗镽唚臘䴺䋸䆋昄唚䔇昄䕞橻䘖㔗
stakindNint2 婔婻䚡乕臘䴺認䓉䌂傋䔇䂘螇庻嗘婘 pg_statistic 臯䔇丸 N 婻"擘嘉"㔗
staopNoidpg_operator.oid婔婻䫘庯䫘潊認底庻嗘婘丸 N 婻"擘嘉"䔇䂘螇媇敇䔇淉嘩严㔗懫套婔婻昌麵商擘嘉嚔滆䴺 < 淉嘩严臖淉嘩严垔幬庖臖昄扞䔇毐废釺废㔗
stanumbersNfloat4[] N 婻"擘嘉"䔇䕩噿䌂傋䔇昄唚䌂傋䂘螇套悩臖擘嘉启昄唚䌂傋澇橬噿係闼幽儌滇 NULL 㔗
stavaluesNanyarray N 婻"擘嘉"䕩噿䌂傋䔇庖枕昄扞唚套悩臖擘嘉䌂傋婉庻嗘傂嘘昄扞唚闼幽儌滇 NULL 㔗懟婻昄䂇䔇噄䘹唚垂鍙婪鄘滇毺垔庖枕䔇昄扞䌂傋啹溴鍴庖檪認底庖枕䔇䌂傋垔幬潊 anyarray 幋崡澇橬敘喘䔇媂濘㔗

劯锔饡釕嬉誕
pg_shdescription婪婔亓pg_tablespace