{"Entry":{"collection":"catalog","key":"pg_cursors","name":"pg_cursors","aliases":[],"metadata":{"changed_in":[],"changes":[{"added":[],"attributes":[],"description_changed":false,"descriptions":[],"from":"8.1","order":false,"removed":[],"status":"added","to":"8.2","types":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"8.2","listing":[],"order":false,"removed":[],"status":"reworded","to":"8.3","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"8.4","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.0","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"9.2","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.3","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"9.3","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.4","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"9.4","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.5","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"9.5","listing":[],"order":false,"removed":[],"status":"reworded","to":"9.6","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"9.6","listing":[],"order":false,"removed":[],"status":"reworded","to":"10","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"10","listing":[],"order":false,"removed":[],"status":"reworded","to":"11","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"11","listing":[],"order":false,"removed":[],"status":"reworded","to":"12","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"13","listing":[],"order":false,"removed":[],"status":"reworded","to":"14","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"14","listing":[],"order":false,"removed":[],"status":"reworded","to":"15","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"16","listing":[],"order":false,"removed":[],"status":"reworded","to":"17","types":[],"unlisted":[]},{"added":[],"attributes":[],"description_changed":true,"descriptions":[],"from":"17","listing":[],"order":false,"removed":[],"status":"reworded","to":"18","types":[],"unlisted":[]}],"column_count":6,"content_hash":"134197de801f2c6ecc0ce42d2e1d3a7f0bb21b0f50730094060f529e2b478c08","derived_content_hash":"10377e83b5679bf378554ea82d789a7c31184e5531441f9e6f4bf73644641be8","first_version":"8.2","imported_at":"2026-09-30T00:40:55.480077+08:00","kind":"view","last_version":"20","name":"pg_cursors","position":19,"present_in":["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":"v","shared":false,"source_rev":"catalog-bilingual-repair:88d138e529a5aa8c45dbbf63affb48d6f6c25ac9a2b5c0a5b4c65d5c5510630e","summary":"The pg_cursors view lists the cursors that are currently available.","summary_zh":"pg_cursors 视图列出当前可用的游标。游标可以通过多种方式定义："}},"Definition":{"Collection":"catalog","Key":"pg_cursors","SourceDatabase":"center","Version":"18","SourceTable":"catalog","SourceKey":"pg_cursors","SourceRevision":"catalog-bilingual-repair:88d138e529a5aa8c45dbbf63affb48d6f6c25ac9a2b5c0a5b4c65d5c5510630e","Facts":{"columns":[{"array_dimensions":0,"attnum":1,"description":"The name of the cursor","description_zh":"游标名","documented":true,"documented_name":"name","hidden":false,"name":"name","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":2,"description":"The verbatim query string submitted to declare this cursor","description_zh":"用于声明此游标的原始查询字符串","documented":true,"documented_name":"statement","hidden":false,"name":"statement","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":3,"description":"true if the cursor is holdable (that is, it can be accessed after the transaction that declared the cursor has committed); false otherwise","description_zh":"如果游标是可保持游标（即，在声明该游标的事务提交后仍可访问）则为 true，否则为 false","documented":true,"documented_name":"is_holdable","hidden":false,"name":"is_holdable","not_null":false,"references":"","type":"bool","type_modifier":-1,"type_oid":16,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":4,"description":"true if the cursor was declared BINARY; false otherwise","description_zh":"如果游标被声明为 BINARY，则为 true；否则为 false","documented":true,"documented_name":"is_binary","hidden":false,"name":"is_binary","not_null":false,"references":"","type":"bool","type_modifier":-1,"type_oid":16,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":5,"description":"true if the cursor is scrollable (that is, it allows rows to be retrieved in a nonsequential manner); false otherwise","description_zh":"如果游标是可滚动的（即，允许以一种非顺序的方式检索行）则为 true，否则为 false","documented":true,"documented_name":"is_scrollable","hidden":false,"name":"is_scrollable","not_null":false,"references":"","type":"bool","type_modifier":-1,"type_oid":16,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":6,"description":"The time at which the cursor was declared","description_zh":"游标被声明的时间","documented":true,"documented_name":"creation_time","hidden":false,"name":"creation_time","not_null":false,"references":"","type":"timestamptz","type_modifier":-1,"type_oid":1184,"zh_from":"same-version-manual"}],"description":"The pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways:\n\nvia the DECLARE statement in SQL via the Bind message in the frontend/backend protocol, as described in Section 54.2.3 via the Server Programming Interface (SPI), as described in Section 45.1\n\nThe pg_cursors view displays cursors created by any of these means. Cursors only exist for the duration of the transaction that defines them, unless they have been declared WITH HOLD. Therefore non-holdable cursors are only present in the view until the end of their creating transaction.","description_zh":"pg_cursors 视图列出当前可用的游标。游标可以通过多种方式定义：\n\n通过 SQL 中的 DECLARE 语句 通过前端/后端协议中的 Bind 消息，如第 54.2.3 节中所述 通过服务器编程接口（SPI），如第 45.1 节中所述\n\npg_cursors 视图显示通过任何这些方式创建的游标。游标仅在定义它们的事务的持续时间内存在，除非它们已经声明为 WITH HOLD。因此，不可保持的游标仅在其创建事务结束之前存在于视图中。\n\n","description_zh_html":"\u003cp\u003epg_cursors 视图列出当前可用的游标。游标可以通过多种方式定义：\u003c/p\u003e\n\u003cp\u003e通过 SQL 中的 DECLARE 语句 通过前端/后端协议中的 Bind 消息，如第 54.2.3 节中所述 通过服务器编程接口（SPI），如第 45.1 节中所述\u003c/p\u003e\n\u003cp\u003epg_cursors 视图显示通过任何这些方式创建的游标。游标仅在定义它们的事务的持续时间内存在，除非它们已经声明为 WITH HOLD。因此，不可保持的游标仅在其创建事务结束之前存在于视图中。\u003c/p\u003e","doc":{"anchor":"id-1.10.5.11.4","file":"view-pg-cursors.html","lang":"en","sha256":"674294eb83fd0a712ac812ff0220bb2f604d116789f22b600491f0973ed9ca3b","slug":"18"},"kind":"view","lang":"en","measured_attributes":true,"metadata_release":"18.6","runtime_columns":["name","statement","is_holdable","is_binary","is_scrollable","creation_time"],"runtime_verified":false,"source":"english-manual","sources":[{"evidence":[{"build_id":107,"kind":"same-version-manual","locale":"zh-Hans","page":"view-pg-cursors.html","sha256":"88ef4bb4615c6256bbface449250dd497b9a42f55f4796adac237ea9fe00ca06","source_revision":"unknown:rendered-translation-baseline","translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","version":"18"}],"kind":"catalog-bilingual-repair","prior_source_revision":"english-manuals:bfe38e315a98bdd9c50bccc1f421f7d453c479808f010e03c4c115e0417fde66","version":"18"}],"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"id-1.10.5.11.4","file":"view-pg-cursors.html","lang":"en","sha256":"674294eb83fd0a712ac812ff0220bb2f604d116789f22b600491f0973ed9ca3b","slug":"18"},"sources":[{"evidence":[{"build_id":107,"kind":"same-version-manual","locale":"zh-Hans","page":"view-pg-cursors.html","sha256":"88ef4bb4615c6256bbface449250dd497b9a42f55f4796adac237ea9fe00ca06","source_revision":"unknown:rendered-translation-baseline","translation_revision":"git:b1b500221dbe5437cfca004d6b04d3f6e422765d;html-sha256:08e987a66af27b98444a8057c256314eafa13611a3fb9e888214fc436824244b","version":"18"}],"kind":"catalog-bilingual-repair","prior_source_revision":"english-manuals:bfe38e315a98bdd9c50bccc1f421f7d453c479808f010e03c4c115e0417fde66","version":"18"}]},"MeasuredEvidence":{"measured_attributes":true,"metadata_release":"18.6","runtime_columns":["name","statement","is_holdable","is_binary","is_scrollable","creation_time"],"runtime_verified":false}},"Text":{"Collection":"catalog","Key":"pg_cursors","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_cursors","Summary":"The pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways:\n\nvia the DECLARE statement in SQL via the Bind message in the frontend/backend protocol, as described in Section 54.2.3 via the Server Programming Interface (SPI), as described in Section 45.1\n\nThe pg_cursors view displays cursors created by any of these means. Cursors only exist for the duration of the transaction that defines them, unless they have been declared WITH HOLD. Therefore non-holdable cursors are only present in the view until the end of their creating transaction.","BodyHTML":"\u003cp\u003eThe pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways:\n\nvia the DECLARE statement in SQL via the Bind message in the frontend/backend protocol, as described in Section 54.2.3 via the Server Programming Interface (SPI), as described in Section 45.1\n\nThe pg_cursors view displays cursors created by any of these means. Cursors only exist for the duration of the transaction that defines them, unless they have been declared WITH HOLD. Therefore non-holdable cursors are only present in the view until the end of their creating transaction.\u003c/p\u003e","SourceRevision":"catalog-bilingual-repair:88d138e529a5aa8c45dbbf63affb48d6f6c25ac9a2b5c0a5b4c65d5c5510630e","ContentHash":"1f27af9e3d1f441fa998c9aa2ffd1355c294d27919453fd256b6d5d3fc82def6","Payload":{"columns":[{"array_dimensions":0,"attnum":1,"description":"The name of the cursor","description_zh":"游标名","documented":true,"documented_name":"name","hidden":false,"name":"name","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":2,"description":"The verbatim query string submitted to declare this cursor","description_zh":"用于声明此游标的原始查询字符串","documented":true,"documented_name":"statement","hidden":false,"name":"statement","not_null":false,"references":"","type":"text","type_modifier":-1,"type_oid":25,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":3,"description":"true if the cursor is holdable (that is, it can be accessed after the transaction that declared the cursor has committed); false otherwise","description_zh":"如果游标是可保持游标（即，在声明该游标的事务提交后仍可访问）则为 true，否则为 false","documented":true,"documented_name":"is_holdable","hidden":false,"name":"is_holdable","not_null":false,"references":"","type":"bool","type_modifier":-1,"type_oid":16,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":4,"description":"true if the cursor was declared BINARY; false otherwise","description_zh":"如果游标被声明为 BINARY，则为 true；否则为 false","documented":true,"documented_name":"is_binary","hidden":false,"name":"is_binary","not_null":false,"references":"","type":"bool","type_modifier":-1,"type_oid":16,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":5,"description":"true if the cursor is scrollable (that is, it allows rows to be retrieved in a nonsequential manner); false otherwise","description_zh":"如果游标是可滚动的（即，允许以一种非顺序的方式检索行）则为 true，否则为 false","documented":true,"documented_name":"is_scrollable","hidden":false,"name":"is_scrollable","not_null":false,"references":"","type":"bool","type_modifier":-1,"type_oid":16,"zh_from":"same-version-manual"},{"array_dimensions":0,"attnum":6,"description":"The time at which the cursor was declared","description_zh":"游标被声明的时间","documented":true,"documented_name":"creation_time","hidden":false,"name":"creation_time","not_null":false,"references":"","type":"timestamptz","type_modifier":-1,"type_oid":1184,"zh_from":"same-version-manual"}],"description":"The pg_cursors view lists the cursors that are currently available. Cursors can be defined in several ways:\n\nvia the DECLARE statement in SQL via the Bind message in the frontend/backend protocol, as described in Section 54.2.3 via the Server Programming Interface (SPI), as described in Section 45.1\n\nThe pg_cursors view displays cursors created by any of these means. Cursors only exist for the duration of the transaction that defines them, unless they have been declared WITH HOLD. Therefore non-holdable cursors are only present in the view until the end of their creating transaction."}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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}
