支援的版本:目前 (17) / 16 / 15 / 14 / 13
開發版本:devel
不支援的版本:12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4 / 7.3 / 7.2 / 7.1

51.6. pg_attrdef #

目錄 pg_attrdef 儲存欄位的預設值。關於欄位的主要資訊儲存在 pg_attribute 中。只有明確設定預設值的欄位才會有一個條目在這裡。

表 51.6. pg_attrdef 欄位

欄位類型

描述

oid oid

列識別碼

adrelid oid (參考 pg_class.oid)

此欄位所屬的資料表

adnum int2 (參考 pg_attribute.attnum)

欄位的編號

adbin pg_node_tree

欄位的預設值,以 nodeToString() 表示法呈現。使用 pg_get_expr(adbin, adrelid) 將其轉換為 SQL 運算式。


提交更正

如果您在文件中發現任何不正確、與您使用特定功能的經驗不符或需要進一步澄清的地方,請使用此表單來報告文件問題。