{"Entry":{"collection":"catalog","key":"pg_description","name":"pg_description","aliases":[],"metadata":{"changed_in":["9.5"],"changes":[{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"7.4","listing":[],"order":false,"removed":[],"status":"reworded","to":"8.0","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[{"from":"Arbitrary text that serves as the description of this object.","name":"description","to":"Arbitrary text that serves as the description of this object"},{"from":"For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero.","name":"objsubid","to":"For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero"}],"from":"8.1","listing":[],"order":false,"removed":[],"status":"reworded","to":"8.2","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":false,"descriptions":[{"from":"For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero","name":"objsubid","to":"For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero."}],"from":"8.4","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.0","types":[],"unlisted":[]},{"added":[],"attributes":[{"attribute":"not_null","from":false,"name":"description","to":true}],"description_changed":false,"descriptions":[],"from":"9.4","listing":[],"order":false,"removed":[],"status":"changed","to":"9.5","types":[],"unlisted":[]}],"column_count":4,"content_hash":"f19e883cb2fbb96f5046ced93bbdd70b6e136f942d99631ed58b03850c7838e9","first_version":"7.4","imported_at":"2026-09-30T00:40:55.512595+08:00","kind":"catalog","last_version":"20","name":"pg_description","position":24,"present_in":["7.4","8.0","8.1","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"],"relation_oid":null,"relkind":"r","shared":false,"source_rev":"english-manuals:d59e2bd55537c8f38b51ee3659fff2c2b6b09bc906bcfb6d12827130aea89021","summary":"The catalog pg_description stores optional descriptions (comments) for each database object.","summary_zh":""}},"Definition":{"Collection":"catalog","Key":"pg_description","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_description","SourceRevision":"english-manuals:d59e2bd55537c8f38b51ee3659fff2c2b6b09bc906bcfb6d12827130aea89021","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"The OID of the object this description pertains to","description_zh":"","documented":true,"documented_name":"objoid","hidden":false,"name":"objoid","not_null":true,"references":"","type":"oid","type_modifier":-1,"type_oid":26},{"array_dimensions":0,"attnum":2,"description":"The OID of the system catalog this object appears in","description_zh":"","documented":true,"documented_name":"classoid","hidden":false,"name":"classoid","not_null":true,"references":"pg_class.oid","type":"oid","type_modifier":-1,"type_oid":26},{"array_dimensions":0,"attnum":3,"description":"For a comment on a table column, this is the column number (the objoid and classoid refer to the table itself). For all other object types, this column is zero.","description_zh":"","documented":true,"documented_name":"objsubid","hidden":false,"name":"objsubid","not_null":true,"references":"","type":"int4","type_modifier":-1,"type_oid":23},{"array_dimensions":0,"attnum":4,"description":"Arbitrary text that serves as the description of this object","description_zh":"","documented":true,"documented_name":"description","hidden":false,"name":"description","not_null":true,"references":"","type":"text","type_modifier":-1,"type_oid":25}],"description":"The catalog pg_description stores optional descriptions (comments) for each database object. Descriptions can be manipulated with the COMMENT command and viewed with psql's \\d commands. Descriptions of many built-in system objects are provided in the initial contents of pg_description.\n\nSee also pg_shdescription, which performs a similar function for descriptions involving objects that are shared across a database cluster.","description_zh":"","doc":{"anchor":"id-1.10.4.21.5","file":"catalog-pg-description.html","lang":"en","sha256":"39d05e815c88504100ab4e545a08d60988a80e8a0aea143108d0ca632b2881bc","slug":"18"},"kind":"catalog","lang":"en","measured_attributes":true,"metadata_release":"18.6","runtime_columns":["objoid","classoid","objsubid","description"],"runtime_verified":false,"source":"english-manual"},"ManualEvidence":{"doc":{"anchor":"id-1.10.4.21.5","file":"catalog-pg-description.html","lang":"en","sha256":"39d05e815c88504100ab4e545a08d60988a80e8a0aea143108d0ca632b2881bc","slug":"18"}},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["objoid","classoid","objsubid","description"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_description","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_description","Summary":"目录pg_description存储对每一个数据库对象可选的描述（注释）。描述可以通过COMMENT操作，并可使用psql的\\d命令查看。在pg_description的初始内容中提供了很多内置系统对象的描述。\n\n参见pg_shdescription，它对在一个数据库集簇中共享的对象的描述提供了相似的功能。","BodyHTML":"\u003cp\u003e目录pg_description存储对每一个数据库对象可选的描述（注释）。描述可以通过COMMENT操作，并可使用psql的\\d命令查看。在pg_description的初始内容中提供了很多内置系统对象的描述。\n\n参见pg_shdescription，它对在一个数据库集簇中共享的对象的描述提供了相似的功能。\u003c/p\u003e","SourceRevision":"2026-09-27@419045e","ContentHash":"04a3465d12d10dc599a5c127b0e07dade6cfcf0d193a90e1fb38a2d335f6dbc8","Payload":{"columns":[{"description_zh":"描述所属对象的OID","name":"objoid","type":"oid","zh_from":"doc"},{"description_zh":"该对象所在的系统目录的 OID","name":"classoid","type":"oid","zh_from":"doc"},{"description_zh":"对于一个表列上的一个注释，这里是列号（objoid和classoid指表本身）。对所有其他对象类型，此列为0。","name":"objsubid","type":"integer","zh_from":"doc"},{"description_zh":"作为该对象描述的任意文本","name":"description","type":"text","zh_from":"doc"}],"description_zh":"目录pg_description存储对每一个数据库对象可选的描述（注释）。描述可以通过COMMENT操作，并可使用psql的\\d命令查看。在pg_description的初始内容中提供了很多内置系统对象的描述。\n\n参见pg_shdescription，它对在一个数据库集簇中共享的对象的描述提供了相似的功能。","zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.4","8.0","8.1","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":null,"Spellings":null,"SQLState":null,"Evidence":null}
