{"Entry":{"collection":"func","key":"pg-visible-in-snapshot","name":"pg_visible_in_snapshot","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"16"},{"descriptions_changed":true,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"17"},{"descriptions_changed":true,"doc_overhaul":false,"from":"17","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"18"}],"content_hash":"bda2d3e8e125400461a104750292428bca7eb63591bff66d7dfcf806e84e6fdb","first_version":"13","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.327362+08:00","last_version":"20","name":"pg_visible_in_snapshot","name_key":"pg_visible_in_snapshot","position":28114,"present_in":["13","14","15","16","17","18","19","20"],"signature":"pg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean","signature_count":1,"slug":"pg-visible-in-snapshot","source_rev":"b7bd9cda","summary":"Is the given transaction ID visible according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see Section 67.3 for details.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-visible-in-snapshot","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-visible-in-snapshot","SourceRevision":"b7bd9cda","Facts":{"description":"Is the given transaction ID visible according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see Section 67.3 for details.","description_html":"Is the given transaction ID \u003cem class=\"firstterm\"\u003evisible\u003c/em\u003e according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see \u003ca href=\"/docs/18/subxacts.html\" title=\"67.3. Subtransactions\"\u003eSection 67.3\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-PG-SNAPSHOT","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Is the given transaction ID visible according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see Section 67.3 for details.","description_html":"Is the given transaction ID \u003cem class=\"firstterm\"\u003evisible\u003c/em\u003e according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see \u003ca href=\"/docs/18/subxacts.html\" title=\"67.3. Subtransactions\"\u003eSection 67.3\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_visible_in_snapshot\u003c/code\u003e ( \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_snapshot\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-PG-SNAPSHOT","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-visible-in-snapshot","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_visible_in_snapshot","Summary":"根据此快照，给定的事务 ID 是否可见（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见第 67.3 节。","BodyHTML":"根据此快照，给定的事务 ID 是否\u003cem\u003e可见\u003c/em\u003e（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见\u003ca href=\"/docs/18/subxacts.html\" rel=\"nofollow\"\u003e第 67.3 节\u003c/a\u003e。\u003cpre\u003epg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean\u003c/pre\u003e根据此快照，给定的事务 ID 是否\u003cem\u003e可见\u003c/em\u003e（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见\u003ca href=\"/docs/18/subxacts.html\" rel=\"nofollow\"\u003e第 67.3 节\u003c/a\u003e。","SourceRevision":"ca936764","ContentHash":"c8b30ef5831aadb10912b9de0d98150233659ff81c0f2c7c851c9c69be71403a","Payload":{"description_zh":"根据此快照，给定的事务 ID 是否可见（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见第 67.3 节。","description_zh_html":"根据此快照，给定的事务 ID 是否\u003cem class=\"firstterm\"\u003e可见\u003c/em\u003e（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见\u003ca href=\"/docs/18/subxacts.html\" title=\"67.3. 子事务\"\u003e第 67.3 节\u003c/a\u003e。","signatures":[{"description_zh":"根据此快照，给定的事务 ID 是否可见（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见第 67.3 节。","description_zh_html":"根据此快照，给定的事务 ID 是否\u003cem class=\"firstterm\"\u003e可见\u003c/em\u003e（即该事务是否在生成快照之前完成）？注意，此函数无法为子事务 ID（subxid）给出正确结果；详见\u003ca href=\"/docs/18/subxacts.html\" title=\"67.3. 子事务\"\u003e第 67.3 节\u003c/a\u003e。","returns":"boolean","text":"pg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["13","14","15","16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"c717a1a88085e7753718389f2437177c267190456d8e30056e1f833034a02e6f","Text":"pg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean","Returns":"boolean","Payload":{"description":"Is the given transaction ID visible according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see Section 67.3 for details.","description_html":"Is the given transaction ID \u003cem class=\"firstterm\"\u003evisible\u003c/em\u003e according to this snapshot (that is, was it completed before the snapshot was taken)? Note that this function will not give the correct answer for a subtransaction ID (subxid); see \u003ca href=\"/docs/18/subxacts.html\" title=\"67.3. Subtransactions\"\u003eSection 67.3\u003c/a\u003e for details.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_visible_in_snapshot\u003c/code\u003e ( \u003ccode class=\"type\"\u003exid8\u003c/code\u003e, \u003ccode class=\"type\"\u003epg_snapshot\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003eboolean\u003c/code\u003e","returns":"boolean","text":"pg_visible_in_snapshot ( xid8, pg_snapshot ) → boolean","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
