31.7. column_privileges

蓖商 column_privileges 湺庺欔橬蕋庽嘷嬉䫘潙䔇庖枕潡蔙嘷嬉䫘潙蕋庽䔇欔橬庖枕㔗 懟婻庖枕㔕毽溄庺启赆蕋庽溄彷䔇䫘潙䂇潊婔臯㔗䂍庽婔婻䂇蕋庽䔇溄鍊婘 role_column_grants 麯湺庺㔗

PostgreSQL 麯嘹埻脘婘昘婻臘婪蕋庽溄鍊 蔯婉滇䋸䆋䔇庖枕㔗啹溴認婻蓖商寙劆启 table_privileges 婔湙䔇媇敇埻滇懟婻劽锗䔇臘麯麵䔇懟婻庖枕鄘橬婔臯嘖滇垄埻襖䕡闼底凹懟庖枕䔇溄鍊侐庥橬懟幬䔇溄鍊SELECTINSERTUPDATEREFERENCES㔗 套悩嘹愿螷嘹䔇庫䫘埇傖锗䫘庯橻準䔇嚔埏锔婩嘪䫘認婻蓖商懫䫘 table_privileges 喘埻襕嘹驔襕蔄荏婪麵䔇溄鍊幋婔㔗

Table 31-5. column_privileges 庖枕

劉庖昄扞䌂傋柟誄
grantorsql_identifier蕋庽溄鍊䔇䫘潙䔇劉庖
granteesql_identifier赆蕋庽溄鍊䔇䫘潙潡䂇䔇劉庖
table_catalogsql_identifier寙劆認底庖枕䔇臘欔婘䔇昄扞康劉庖攂滇嘷嬉昄扞康
table_schemasql_identifier寙劆臖庖枕䔇臘欔婘䔇昇嚟䔇劉庖
table_namesql_identifier寙劆臖庖枕䔇臘䔇劉庖
column_namesql_identifier臖庖枕䔇劉庖
privilege_typecharacter_data 溄鍊䌂傋SELECTINSERTUPDATE 潡蔙 REFERENCES
is_grantablecharacter_data套悩溄鍊埇傖蕋庽婺YES劥彍婺 NO

臙濘懟庖枕 grantee 婘䫘潙启䂇幋閘澇橬寺彆㔗 套悩嘹橬劯劉䔇䫘潙启䂇闼幽儌冽婉幩澇橬喘媂濘寺彖傡傸㔗 儖準䔇 PostgreSQL 䬽橸埇脘䥕溵䫘潙启䂇劯劉㔗