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

43.16. pg_depend

pg_depend 臘螄嘘昄扞康凹茇幋閘䔇冺蕡噿係㔗認婻媇敇噕螩 DROP 变傴欆庺巻底噽垄凹茇媙釂䫌 DROP CASCADE 役鍴潡蔙滇婘 DROP RESTRICT 䔇愙喕婋镪噉役鍴㔗

認婻臘䔇媘脘䌂嚚 pg_shdepend 䫘庯螄嘘闼底婘昄扞康镖䆴幋閘噌庆䔇凹茇幋閘䔇冺蕡攓噿係㔗

臘43-16. pg_depend 庖枕

劉庖䌂傋嚘䫘柟誄
classidoidpg_class.oid橬唔蕡凹茇欔婘係䂘臘䔇 OID
objidoid傂嘘 OID 匂攓毺垔䔇橬冺蕡凹茇䔇 OID
objsubidint4 凹庯臘庖枕認婻滇臖匂攓䔇庖枕昄(objidclassid 嚘䫘臘橸躆)㔗凹庯欔橬噽垄凹茇䌂傋䕞嬉認婻庖枕滇镽㔗
refclassidoidpg_class.oid赆嚘䫘凹茇欔婘䔇係䂘臘䔇 OID
refobjidoid傂懟 OID 匂攓毺垔䔇赆嚘䫘凹茇䔇 OID
refobjsubidint4 凹庯臘庖枕認婻滇臖庖枕䔇庖枕埙(refobjidrefclassid 嚘䫘臘橸躆)㔗凹庯欔橬噽垄凹茇䌂傋䕞嬉認婻庖枕滇镽㔗
deptypechar 婔婻垔幬認婻冺蕡噿係䬹垔臺幬䔇傼乕㔗蓕婋桺㔗

婘欔橬愙喕婋婔婻 pg_depend 螄嘘臘䴺赆嚘䫘䔇凹茇婉脘婘橬冺蕡䔇凹茇赆役鍴嬉役鍴㔗婉誺認麯誻橬庹䓉䫌 deptype 垔幬䔇愙喕

DEPENDENCY_NORMAL (n)

䋸䆋录傺䔇凹茇幋閘䔇婔轸噿係㔗橬唔蕡䔇凹茇埇傖婘婉嘌巉赆嚘䫘凹茇䔇愙喕婋役鍴㔗赆嚘䫘凹茇埻橬婘弄滯庖 CASCADE 䔇愙喕婋役鍴認施橬冺蕡䔇凹茇幘赆役鍴㔗冋床婔婻臘庖枕凹噽昄扞䌂傋橬婔轸冺蕡噿係㔗

DEPENDENCY_AUTO (a)

橬冺蕡凹茇埇傖启赆嚘䫘凹茇彖彆役鍴幽婫套悩役鍴庖赆嚘䫘凹茇彍庫臖赆躻媘役鍴(婉䞇滇 RESTRICTCASCADE 昇嚟)㔗冋床婔婻臘婪麵䔇变劉亥溘滇婘臖臘婪䔇躻媘冺蕡噿係啹溴套悩役鍴庖臘垄幘嚔赆役鍴㔗

DEPENDENCY_INTERNAL (i)

橬冺蕡䔇凹茇滇嘩婺赆嚘䫘凹茇䔇婔鄘彖录傺䔇垂鍙婪埻滇垄䔇喙鄘垂䯄䔇婔鄘彖㔗DROP 橬冺蕡凹茇滇婉脘䕘毖噕螩䔇(儖只臬䫘潙埏庺婔溇役鍴赆嚘䫘凹茇䔇 DROP)㔗婔婻凹赆嚘䫘凹茇䔇 DROP 儖嚹携彄橬冺蕡凹茇婉䞇滇劥弄滯庖 CASCADE 㔗冋床婔婻录傺準嚺彽崡髞亥溘䔇蓥埏単婘臖亥溘䔇 pg_constraint 螄嘘婪滇湺螄婺喙鄘冺蕡䔇㔗

DEPENDENCY_PIN (p)

澇橬橬冺蕡凹茇認䓉䌂傋䔇螄嘘湺媖五係䂘橸躆冺蕡庯赆嚘䫘凹茇啹溴認婻凹茇喿婉脘赆役鍴㔗認䓉䌂傋䔇螄嘘埻橬婘 initdb 䔇施唍录傺㔗橬冺蕡凹茇䔇庖枕麯滇镽㔗

儖準埇脘誻嚔橬噽垄冺蕡䔇鼯湚㔗


劯锔饡釕嬉誕
pg_database婪婔亓pg_description