{"already_in_source_count":0,"candidate_count":8,"cross_major":false,"cve_available":true,"cve_count":1,"cves":[{"affected":{"12":"12","13":"13","14":"14","15":"15","16":"16","17":"17"},"affected_ranges":[{"from":"0","until":"12.21"},{"from":"13","until":"13.17"},{"from":"14","until":"14.14"},{"from":"15","until":"15.9"},{"from":"16","until":"16.5"},{"from":"17","until":"17.1"}],"cna_url":"https://cveawg.mitre.org/api/cve/CVE-2024-10978","component":"core server","cvss_version":"3.0","description_en":"Incorrect privilege assignment in PostgreSQL allows a less-privileged application user to view or change different rows from those intended. An attack requires the application to use SET ROLE , SET SESSION AUTHORIZATION , or an equivalent feature. The problem arises when an application query uses parameters from the attacker or conveys query results to the attacker. If that query reacts to current_setting('role') or the current user ID, it may modify or return data as though the session had not used SET ROLE or SET SESSION AUTHORIZATION . The attacker does not control which incorrect user ID applies. Query text from less-privileged sources is not a concern here, because SET ROLE and SET SESSION AUTHORIZATION are not sandboxes for unvetted queries. Versions before PostgreSQL 17.1, 16.5, 15.9, 14.14, 13.17, and 12.21 are affected.\n\nThe PostgreSQL project thanks Tom Lane for reporting this problem.","first_published":"2024-11-14","fixed":{"12":"12.21","13":"13.17","14":"14.14","15":"15.9","16":"16.5","17":"17.1"},"fixed_version":"16.5","id":"CVE-2024-10978","introduced":{},"published":{"12":"2024-11-14","13":"2024-11-14","14":"2024-11-14","15":"2024-11-14","16":"2024-11-14","17":"2024-11-14"},"score":4.2,"title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"https://www.postgresql.org/support/security/CVE-2024-10978/","vector":"AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N"}],"duplicate_count":0,"excluded_count":0,"exclusions":[],"from_release":null,"groups":[{"age_days":733,"build":"16.6","changes_count":8,"compatibility_count":0,"content_hash":"d7c5a473f2c07430730de28e9b8b76d15e6b665ae65ec35b6dd4bf89b7d15e4a","date":"2024-11-21","date_text":"2024-11-21","doc_git":"b9f0e7232f60f380d642ac9b99226606c254b552","doc_loaded_at":"2026-11-12T17:14:13+00:00","entries":[{"also_in":[],"category":"bugfix","category_label":"Bug fixes","commit_aliases":["099e711b7","17db248f3","6bfacd368","ee33d5847"],"commit_groups":[["099e711b7","17db248f3","6bfacd368","ee33d5847"]],"commits":["ee33d5847"],"cves":[],"db_id":"69437a2d1a205badf04c74ff87163e3e","html":"\u003cp\u003eRepair ABI break for extensions that work with struct \u003ccode\u003eResultRelInfo\u003c/code\u003e (Tom Lane) \u003ca href=\"https://postgr.es/c/ee33d5847\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eLast week's minor releases unintentionally broke binary compatibility with \u003cspan\u003etimescaledb\u003c/span\u003e and several other extensions. Restore the affected structure to its previous size, so that such extensions need not be rebuilt.\u003c/p\u003e","id":"16.6-789af84344fc2dcd","identity_text":"Repair ABI break for extensions that work with struct ResultRelInfo (Tom Lane) Last week's minor releases unintentionally broke binary compatibility with timescaledb and several other extensions. Restore the affected structure to its previous size, so that such extensions need not be rebuilt.","part":"changes","patch_ids":["612d102f28be68bf35b173df20386d6f"],"related_changes":[{"db_id":"a929df65b7c7dd604ebadc2316aa26ac","evidence":{"patch_ids":["612d102f28be68bf35b173df20386d6f"],"same_day":true,"statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Repair ABI break for extensions that work with struct ResultRelInfo","url":"/docs/compare/?release=17.2#17.2-21d6cfdc332a4791","version":"17.2"},{"db_id":"168f409145dd973b0f389e0faa385826","evidence":{"patch_ids":["612d102f28be68bf35b173df20386d6f"],"same_day":true,"statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Repair ABI break for extensions that work with struct ResultRelInfo","url":"/docs/compare/?release=15.10#15.10-33aa2cbd75ac71f6","version":"15.10"},{"db_id":"de763be496358f3e7348203940378465","evidence":{"patch_ids":["612d102f28be68bf35b173df20386d6f"],"same_day":true,"statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Repair ABI break for extensions that work with struct ResultRelInfo","url":"/docs/compare/?release=14.15#14.15-993119bae55151c8","version":"14.15"}],"relations":[{"evidence":{"patch_ids":["612d102f28be68bf35b173df20386d6f"],"same_day":true,"statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848"},"rule":2,"target":"168f409145dd973b0f389e0faa385826","type":"equivalent"},{"evidence":{"patch_ids":["612d102f28be68bf35b173df20386d6f"],"same_day":true,"statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848"},"rule":2,"target":"a929df65b7c7dd604ebadc2316aa26ac","type":"equivalent"},{"evidence":{"patch_ids":["612d102f28be68bf35b173df20386d6f"],"same_day":true,"statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848"},"rule":2,"target":"de763be496358f3e7348203940378465","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["ee33d5847"],"source_entry_id":"16.6/changes/001","source_hash":"921c4c4aa856fc5120dd70cb5c2e04951adfe874f893cc6e427a3af49b838bc2","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"859ff305652623150b34f958dd3fd907284fe1adb5201317f90d73b2a4245848","text":"Repair ABI break for extensions that work with struct ResultRelInfo (Tom Lane) § Last week's minor releases unintentionally broke binary compatibility with timescaledb and several other extensions. Restore the affected structure to its previous size, so that such extensions need not be rebuilt.","title":"Repair ABI break for extensions that work with struct ResultRelInfo","variants":[],"version":"16.6"},{"also_in":[],"category":"security","category_label":"Security","commit_aliases":["07c6e0f61","1c05004a8","7b88529f4","b0918c128","be062bfa5","c46333865","edf80895f"],"commit_groups":[["07c6e0f61","1c05004a8","7b88529f4","b0918c128","be062bfa5","c46333865","edf80895f"]],"commits":["b0918c128"],"cves":["CVE-2024-10978"],"db_id":"bbc5cf6b20273068c4d6c9dd65da0b05","html":"\u003cp\u003eRestore functionality of \u003ccode\u003eALTER {ROLE|DATABASE} SET role\u003c/code\u003e (Tom Lane, Noah Misch) \u003ca href=\"https://postgr.es/c/b0918c128\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThe fix for CVE-2024-10978 accidentally caused settings for \u003ccode\u003erole\u003c/code\u003e to not be applied if they come from non-interactive sources, including previous \u003ccode\u003eALTER {ROLE|DATABASE}\u003c/code\u003e commands and the \u003ccode\u003ePGOPTIONS\u003c/code\u003e environment variable.\u003c/p\u003e","id":"16.6-59096cd01766b695","identity_text":"Restore functionality of ALTER {ROLE|DATABASE} SET role (Tom Lane, Noah Misch) The fix for CVE-2024-10978 accidentally caused settings for role to not be applied if they come from non-interactive sources, including previous ALTER {ROLE|DATABASE} commands and the PGOPTIONS environment variable.","part":"changes","patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"related_changes":[{"db_id":"f20342f7ad93514b4af50956c971c3b8","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=17.2#17.2-d77293a82e3a14e5","version":"17.2"},{"db_id":"5b38c75ca60bfc75793b4821795e8ef6","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=15.10#15.10-d3c8a67fc12652c8","version":"15.10"},{"db_id":"e4a3a55b29e3e45132a44ee9d76a8b7a","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=14.15#14.15-422cf39c7394aada","version":"14.15"},{"db_id":"2738c31dbd265aa929daa4b4aa4a67ba","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"13.18","source_url":"/docs/release/13.18/#id-1.11.6.11.5","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=13.18#13.18-2dcb90b343e7bf55","version":"13.18"},{"db_id":"acf7b13b266fc0c0b48132f58dda40a4","evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"kind":"equivalent","label":"12.22","source_url":"/docs/release/12.22/#id-1.11.6.6.6","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","url":"/docs/compare/?release=12.22#12.22-87cfe420bf12aef8","version":"12.22"}],"relations":[{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"2738c31dbd265aa929daa4b4aa4a67ba","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"5b38c75ca60bfc75793b4821795e8ef6","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"acf7b13b266fc0c0b48132f58dda40a4","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"e4a3a55b29e3e45132a44ee9d76a8b7a","type":"equivalent"},{"evidence":{"patch_ids":["919a51e9d5f17a763b934dd71ff20f74"],"same_day":true,"statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1"},"rule":2,"target":"f20342f7ad93514b4af50956c971c3b8","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["b0918c128"],"source_entry_id":"16.6/changes/002","source_hash":"6f0a5fa6c7197aadd89c1b6353d458863bdd50b5bc158e8237733fa6171242b7","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"58d30457493a9f01745241c5d06236c69fc1c5c8ddb5044ce94a9c4a4075fee1","text":"Restore functionality of ALTER {ROLE|DATABASE} SET role (Tom Lane, Noah Misch) § The fix for CVE-2024-10978 accidentally caused settings for role to not be applied if they come from non-interactive sources, including previous ALTER {ROLE|DATABASE} commands and the PGOPTIONS environment variable.","title":"Restore functionality of ALTER {ROLE|DATABASE} SET role","variants":[],"version":"16.6"},{"also_in":[],"category":"bugfix","category_label":"Bug fixes","commit_aliases":["15dc1abb1","26c4e8968","568e78a65","91771b3fb","e5ed873b1","f35391133"],"commit_groups":[["15dc1abb1","26c4e8968","568e78a65","91771b3fb","e5ed873b1","f35391133"]],"commits":["f35391133"],"cves":[],"db_id":"8f0e270da299adb30e1901570a8fe309","html":"\u003cp\u003eFix cases where a logical replication slot's \u003ccode\u003erestart_lsn\u003c/code\u003e could go backwards (Masahiko Sawada) \u003ca href=\"https://postgr.es/c/f35391133\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003ePreviously, restarting logical replication could sometimes cause the slot's restart point to be recomputed as an older value than had previously been advertised in \u003ccode\u003epg_replication_slots\u003c/code\u003e. This is bad, since for example WAL files might have been removed on the basis of the later \u003ccode\u003erestart_lsn\u003c/code\u003e value, in which case replication would fail to restart.\u003c/p\u003e","id":"16.6-20c2a4b20819e474","identity_text":"Fix cases where a logical replication slot's restart_lsn could go backwards (Masahiko Sawada) Previously, restarting logical replication could sometimes cause the slot's restart point to be recomputed as an older value than had previously been advertised in pg_replication_slots. This is bad, since for example WAL files might have been removed on the basis of the later restart_lsn value, in which case replication would fail to restart.","part":"changes","patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"related_changes":[{"db_id":"7314b3acc1bcea03af87a29d6ae66d66","evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Fix cases where a logical replication slot's restart_lsn could go backwards","url":"/docs/compare/?release=17.2#17.2-75cf64383155ff92","version":"17.2"},{"db_id":"f3d3824aa67522cf3e92153b05732253","evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Fix cases where a logical replication slot's restart_lsn could go backwards","url":"/docs/compare/?release=15.10#15.10-0aa3e2da88ef79d2","version":"15.10"},{"db_id":"eeac887b0b63b2fdf6611c932284ec81","evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Fix cases where a logical replication slot's restart_lsn could go backwards","url":"/docs/compare/?release=14.15#14.15-dbdf316123c7d4cb","version":"14.15"},{"db_id":"2379d7430937e26c867f0b3b2bc9112f","evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"kind":"equivalent","label":"13.18","source_url":"/docs/release/13.18/#id-1.11.6.11.5","title":"Fix cases where a logical replication slot's restart_lsn could go backwards","url":"/docs/compare/?release=13.18#13.18-73debc97f1da2a16","version":"13.18"}],"relations":[{"evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"rule":2,"target":"2379d7430937e26c867f0b3b2bc9112f","type":"equivalent"},{"evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"rule":2,"target":"7314b3acc1bcea03af87a29d6ae66d66","type":"equivalent"},{"evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"rule":2,"target":"eeac887b0b63b2fdf6611c932284ec81","type":"equivalent"},{"evidence":{"patch_ids":["069bd53d83383ae0d89ffa6e359b6218"],"same_day":true,"statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48"},"rule":2,"target":"f3d3824aa67522cf3e92153b05732253","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["f35391133"],"source_entry_id":"16.6/changes/003","source_hash":"fb0416aa7981703ba0ad7aa2b462ef85611510404f6d42b236718373182d89ab","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"a88aae52abe4e6ce8da143195ef0b2e48986b4030d26c50d007b00695a6a6a48","text":"Fix cases where a logical replication slot's restart_lsn could go backwards (Masahiko Sawada) § Previously, restarting logical replication could sometimes cause the slot's restart point to be recomputed as an older value than had previously been advertised in pg_replication_slots. This is bad, since for example WAL files might have been removed on the basis of the later restart_lsn value, in which case replication would fail to restart.","title":"Fix cases where a logical replication slot's restart_lsn could go backwards","variants":[],"version":"16.6"},{"also_in":[],"category":"improvement","category_label":"Improvements","commit_aliases":["90bcc7c2d","ba2535841","cb844d66b","e28cf2fbc","ea1649c35"],"commit_groups":[["90bcc7c2d","ba2535841","cb844d66b","e28cf2fbc","ea1649c35"]],"commits":["ea1649c35"],"cves":[],"db_id":"1896f4f2f5b9418011061c7f0dbc7045","html":"\u003cp\u003eAvoid deleting still-needed WAL files during \u003cspan\u003epg_rewind\u003c/span\u003e (Polina Bungina, Alexander Kukushkin) \u003ca href=\"https://postgr.es/c/ea1649c35\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003ePreviously, in unlucky cases, it was possible for \u003cspan\u003epg_rewind\u003c/span\u003e to remove important WAL files from the rewound demoted primary. In particular this happens if those files have been marked for archival (i.e., their \u003ccode\u003e.ready\u003c/code\u003e files were created) but not yet archived. Then the newly promoted node no longer has such files because of them having been recycled, but likely they are needed for recovery in the demoted node. If \u003cspan\u003epg_rewind\u003c/span\u003e removes them, recovery is not possible anymore.\u003c/p\u003e","id":"16.6-8d0c746f2a07d9fd","identity_text":"Avoid deleting still-needed WAL files during pg_rewind (Polina Bungina, Alexander Kukushkin) Previously, in unlucky cases, it was possible for pg_rewind to remove important WAL files from the rewound demoted primary. In particular this happens if those files have been marked for archival (i.e., their .ready files were created) but not yet archived. Then the newly promoted node no longer has such files because of them having been recycled, but likely they are needed for recovery in the demoted node. If pg_rewind removes them, recovery is not possible anymore.","part":"changes","patch_ids":["d320398b63f9dcbb0f110189615dd149"],"related_changes":[{"db_id":"d2603878b41c2d936f901ed56a1d37ec","evidence":{"patch_ids":["d320398b63f9dcbb0f110189615dd149"],"same_day":true,"statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Avoid deleting still-needed WAL files during pg_rewind","url":"/docs/compare/?release=17.2#17.2-9ee78747990a7f5d","version":"17.2"},{"db_id":"d42182b95044d61916eb49e3d9a2ae1f","evidence":{"patch_ids":["d320398b63f9dcbb0f110189615dd149"],"same_day":true,"statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Avoid deleting still-needed WAL files during pg_rewind","url":"/docs/compare/?release=15.10#15.10-02e466d0de6e4be8","version":"15.10"},{"db_id":"807626e2c9a2f106ad39d890276237af","evidence":{"patch_ids":["d320398b63f9dcbb0f110189615dd149"],"same_day":true,"statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Avoid deleting still-needed WAL files during pg_rewind","url":"/docs/compare/?release=14.15#14.15-2ca9269314939c80","version":"14.15"}],"relations":[{"evidence":{"patch_ids":["d320398b63f9dcbb0f110189615dd149"],"same_day":true,"statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac"},"rule":2,"target":"807626e2c9a2f106ad39d890276237af","type":"equivalent"},{"evidence":{"patch_ids":["d320398b63f9dcbb0f110189615dd149"],"same_day":true,"statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac"},"rule":2,"target":"d2603878b41c2d936f901ed56a1d37ec","type":"equivalent"},{"evidence":{"patch_ids":["d320398b63f9dcbb0f110189615dd149"],"same_day":true,"statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac"},"rule":2,"target":"d42182b95044d61916eb49e3d9a2ae1f","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["ea1649c35"],"source_entry_id":"16.6/changes/004","source_hash":"a6deeb8041d3c7b7775ef509d2fe1fff096e41c6d92368632a653b64c716b325","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"1b37aa9cc0526f6d97bf41cd77fca716ccb407dcb57b1b3f6b0f3b95e69dccac","text":"Avoid deleting still-needed WAL files during pg_rewind (Polina Bungina, Alexander Kukushkin) § Previously, in unlucky cases, it was possible for pg_rewind to remove important WAL files from the rewound demoted primary. In particular this happens if those files have been marked for archival (i.e., their .ready files were created) but not yet archived. Then the newly promoted node no longer has such files because of them having been recycled, but likely they are needed for recovery in the demoted node. If pg_rewind removes them, recovery is not possible anymore.","title":"Avoid deleting still-needed WAL files during pg_rewind","variants":[],"version":"16.6"},{"also_in":[],"category":"bugfix","category_label":"Bug fixes","commit_aliases":["154c5b42a","1d6a03ea4","818119afc","afa20845d"],"commit_groups":[["154c5b42a","1d6a03ea4","818119afc","afa20845d"]],"commits":["afa20845d"],"cves":[],"db_id":"00720585f872ae63f854331bb55a962b","html":"\u003cp\u003eFix race conditions associated with dropping shared statistics entries (Kyotaro Horiguchi, Michael Paquier) \u003ca href=\"https://postgr.es/c/afa20845d\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThese bugs could lead to loss of statistics data, assertion failures, or \u003cspan\u003e“\u003cspan\u003ecan only drop stats once\u003c/span\u003e”\u003c/span\u003e errors.\u003c/p\u003e","id":"16.6-47157203c08b0395","identity_text":"Fix race conditions associated with dropping shared statistics entries (Kyotaro Horiguchi, Michael Paquier) These bugs could lead to loss of statistics data, assertion failures, or can only drop stats once errors.","part":"changes","patch_ids":["0a64ef9d7674c6e0697749352fdaf9fb"],"related_changes":[{"db_id":"1d18528def1b782960ba34e22414bb1f","evidence":{"patch_ids":["0a64ef9d7674c6e0697749352fdaf9fb"],"same_day":true,"statement_hash":"f25eb53c8f81ac8eb59f1923e0db374de706c0132aceb01e3c866db1023fb671"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Fix race conditions associated with dropping shared statistics entries","url":"/docs/compare/?release=17.2#17.2-5bdf47a527bf9a4a","version":"17.2"},{"db_id":"0fa7615bea3ddf6bfd82ccaebff2bbd7","evidence":{"patch_ids":["0a64ef9d7674c6e0697749352fdaf9fb"],"same_day":true,"statement_hash":"f25eb53c8f81ac8eb59f1923e0db374de706c0132aceb01e3c866db1023fb671"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Fix race conditions associated with dropping shared statistics entries","url":"/docs/compare/?release=15.10#15.10-b26f48ce588203d8","version":"15.10"}],"relations":[{"evidence":{"patch_ids":["0a64ef9d7674c6e0697749352fdaf9fb"],"same_day":true,"statement_hash":"f25eb53c8f81ac8eb59f1923e0db374de706c0132aceb01e3c866db1023fb671"},"rule":2,"target":"0fa7615bea3ddf6bfd82ccaebff2bbd7","type":"equivalent"},{"evidence":{"patch_ids":["0a64ef9d7674c6e0697749352fdaf9fb"],"same_day":true,"statement_hash":"f25eb53c8f81ac8eb59f1923e0db374de706c0132aceb01e3c866db1023fb671"},"rule":2,"target":"1d18528def1b782960ba34e22414bb1f","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["afa20845d"],"source_entry_id":"16.6/changes/005","source_hash":"8ee733f4a17c6b7c365976170cdc06681fff8053c6fca6176b1d0712697fac33","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"f25eb53c8f81ac8eb59f1923e0db374de706c0132aceb01e3c866db1023fb671","text":"Fix race conditions associated with dropping shared statistics entries (Kyotaro Horiguchi, Michael Paquier) § These bugs could lead to loss of statistics data, assertion failures, or “can only drop stats once” errors.","title":"Fix race conditions associated with dropping shared statistics entries","variants":[],"version":"16.6"},{"also_in":[],"category":"improvement","category_label":"Improvements","commit_aliases":["05aac2e83","16a2bb079","2a30b6836","7af6d1306","93063e2e4","e493ea866"],"commit_groups":[["05aac2e83","16a2bb079","2a30b6836","7af6d1306","93063e2e4","e493ea866"]],"commits":["05aac2e83"],"cves":[],"db_id":"cb76eb7a731699077eb60167ca0eaf1f","html":"\u003cp\u003eCount index scans in \u003ccode\u003econtrib/bloom\u003c/code\u003e indexes in the statistics views, such as the \u003ccode\u003epg_stat_user_indexes\u003c/code\u003e.\u003ccode\u003eidx_scan\u003c/code\u003e counter (Masahiro Ikeda) \u003ca href=\"https://postgr.es/c/05aac2e83\"\u003e§\u003c/a\u003e\u003c/p\u003e","id":"16.6-a73ff36aadffcfcb","identity_text":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter (Masahiro Ikeda)","part":"changes","patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"related_changes":[{"db_id":"82d8483a4776666f82eb5d319fa2b1c1","evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter","url":"/docs/compare/?release=17.2#17.2-90ea7632563c16a8","version":"17.2"},{"db_id":"f15dfa16542819f1af89c8405c6b3e28","evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter","url":"/docs/compare/?release=15.10#15.10-b6a38e4d700ac60e","version":"15.10"},{"db_id":"2fcab360df6135d0065be944b026bbf0","evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter","url":"/docs/compare/?release=14.15#14.15-710830664c07845c","version":"14.15"},{"db_id":"7b67908fa8be25ef7ac6fdbb980b3930","evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"kind":"equivalent","label":"13.18","source_url":"/docs/release/13.18/#id-1.11.6.11.5","title":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter","url":"/docs/compare/?release=13.18#13.18-9fa998bb55f0e4c4","version":"13.18"}],"relations":[{"evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"rule":2,"target":"2fcab360df6135d0065be944b026bbf0","type":"equivalent"},{"evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"rule":2,"target":"7b67908fa8be25ef7ac6fdbb980b3930","type":"equivalent"},{"evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"rule":2,"target":"82d8483a4776666f82eb5d319fa2b1c1","type":"equivalent"},{"evidence":{"patch_ids":["18045be1bf3d0d9ae5adcf381594f3dd"],"same_day":true,"statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270"},"rule":2,"target":"f15dfa16542819f1af89c8405c6b3e28","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["05aac2e83"],"source_entry_id":"16.6/changes/006","source_hash":"6474017615fd60fd25597cb1d6a3cd60b37ed4cc21187f4e6fca6762fa5537d7","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"119add7bd460017f82ba032c4519dc7a8dea78e099fab867acdd3de837d93270","text":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter (Masahiro Ikeda) §","title":"Count index scans in contrib/bloom indexes in the statistics views, such as the pg_stat_user_indexes.idx_scan counter","variants":[],"version":"16.6"},{"also_in":[],"category":"bugfix","category_label":"Bug fixes","commit_aliases":["247e7647f","5411e8213","713b8546a","a6fa869cf","b242aba02","db22b9002"],"commit_groups":[["247e7647f","5411e8213","713b8546a","a6fa869cf","b242aba02","db22b9002"]],"commits":["b242aba02"],"cves":[],"db_id":"ef15430b70b7e1fec1a9ca0e57cd347b","html":"\u003cp\u003eFix crash when checking to see if an index's opclass options have changed (Alexander Korotkov) \u003ca href=\"https://postgr.es/c/b242aba02\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eSome forms of \u003ccode\u003eALTER TABLE\u003c/code\u003e would fail if the table has an index with non-default operator class options.\u003c/p\u003e","id":"16.6-99266a3c2d9d8f9c","identity_text":"Fix crash when checking to see if an index's opclass options have changed (Alexander Korotkov) Some forms of ALTER TABLE would fail if the table has an index with non-default operator class options.","part":"changes","patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"related_changes":[{"db_id":"0fdbd063d8cd025895b7106b3f929362","evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Fix crash when checking to see if an index's opclass options have changed","url":"/docs/compare/?release=17.2#17.2-04c251017e57618e","version":"17.2"},{"db_id":"7c45f4d1fde089f5aee8f5683dbb0d41","evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Fix crash when checking to see if an index's opclass options have changed","url":"/docs/compare/?release=15.10#15.10-9cdcfef81a8480ac","version":"15.10"},{"db_id":"3968d61ee6b6651ba3b84916f84db243","evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Fix crash when checking to see if an index's opclass options have changed","url":"/docs/compare/?release=14.15#14.15-05619bc8173d26d7","version":"14.15"},{"db_id":"207e3b56e933a534b2897c6a7ad86253","evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"kind":"equivalent","label":"13.18","source_url":"/docs/release/13.18/#id-1.11.6.11.5","title":"Fix crash when checking to see if an index's opclass options have changed","url":"/docs/compare/?release=13.18#13.18-d30b13f05cc1c528","version":"13.18"}],"relations":[{"evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"rule":2,"target":"0fdbd063d8cd025895b7106b3f929362","type":"equivalent"},{"evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"rule":2,"target":"207e3b56e933a534b2897c6a7ad86253","type":"equivalent"},{"evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"rule":2,"target":"3968d61ee6b6651ba3b84916f84db243","type":"equivalent"},{"evidence":{"patch_ids":["e5ef0dcbed3b7af0eee17f9caf84ef30"],"same_day":true,"statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f"},"rule":2,"target":"7c45f4d1fde089f5aee8f5683dbb0d41","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["b242aba02"],"source_entry_id":"16.6/changes/007","source_hash":"3e83b832349d699e663b07da690d1553a4298b358f9a39655b8900d2588ef7af","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"809b8758ffe38c7387d0f5e4843ab7f97041a2848e578522f97e94399f24ea8f","text":"Fix crash when checking to see if an index's opclass options have changed (Alexander Korotkov) § Some forms of ALTER TABLE would fail if the table has an index with non-default operator class options.","title":"Fix crash when checking to see if an index's opclass options have changed","variants":[],"version":"16.6"},{"also_in":[],"category":"improvement","category_label":"Improvements","commit_aliases":["2496c3f6f","2bdd3b248","5f28e6ba7","b6312becc","b69bdcee9"],"commit_groups":[["2496c3f6f","2bdd3b248","5f28e6ba7","b6312becc","b69bdcee9"]],"commits":["b6312becc"],"cves":[],"db_id":"bf21d683f8d0d96f9d055bb4bef1de43","html":"\u003cp\u003eAvoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing (Tom Lane) \u003ca href=\"https://postgr.es/c/b6312becc\"\u003e§\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eThis bug does not appear to have any visible consequences in non-assert builds.\u003c/p\u003e","id":"16.6-2bddeab9fc0ea18f","identity_text":"Avoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing (Tom Lane) This bug does not appear to have any visible consequences in non-assert builds.","part":"changes","patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"related_changes":[{"db_id":"7132e8ee5e563160e4af1338d1453f50","evidence":{"patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"same_day":true,"statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004"},"kind":"equivalent","label":"17.2","source_url":"/docs/release/17.2/#RELEASE-17-2-CHANGES","title":"Avoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing","url":"/docs/compare/?release=17.2#17.2-8da3b12ee4e5a2f0","version":"17.2"},{"db_id":"ed482b33005a888ec593b9b1ccf803d9","evidence":{"patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"same_day":true,"statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004"},"kind":"equivalent","label":"15.10","source_url":"/docs/release/15.10/#id-1.11.6.15.5","title":"Avoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing","url":"/docs/compare/?release=15.10#15.10-8a351c4062ed4ce2","version":"15.10"},{"db_id":"94a032b95e9db1fe83976fb39e718933","evidence":{"patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"same_day":true,"statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004"},"kind":"equivalent","label":"14.15","source_url":"/docs/release/14.15/#id-1.11.6.15.5","title":"Avoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing","url":"/docs/compare/?release=14.15#14.15-43c204e1b7fb072b","version":"14.15"}],"relations":[{"evidence":{"patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"same_day":true,"statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004"},"rule":2,"target":"7132e8ee5e563160e4af1338d1453f50","type":"equivalent"},{"evidence":{"patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"same_day":true,"statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004"},"rule":2,"target":"94a032b95e9db1fe83976fb39e718933","type":"equivalent"},{"evidence":{"patch_ids":["19538ff2c32bf0b4ca538086ddf05ea3"],"same_day":true,"statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004"},"rule":2,"target":"ed482b33005a888ec593b9b1ccf803d9","type":"equivalent"}],"section":"Changes","section_path":["Changes"],"source_commits":["b6312becc"],"source_entry_id":"16.6/changes/008","source_hash":"0e2e2713e74d3133a10c7ac5db88ce1744a8b4085102108eacf309288bf69d9e","source_url":"/docs/release/16.6/#RELEASE-16-6-CHANGES","statement_hash":"45e3edda123c32ef78cc61b1940f226e0b09d3402295f9f29cab4d764529d004","text":"Avoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing (Tom Lane) § This bug does not appear to have any visible consequences in non-assert builds.","title":"Avoid assertion failure caused by disconnected NFA sub-graphs in regular expression parsing","variants":[],"version":"16.6"}],"entry_count":8,"eol":"2028-11-09","eol_date":"2028-11-09","label":"16.6","major":"16","manual":"16","manual_build":"16.16","manual_url":"/docs/16/release-16-6.html","migration_html":"\u003cp\u003eA dump/restore is not required for those running 16.X.\u003c/p\u003e\n\u003cp\u003eHowever, if you are upgrading from a version earlier than 16.5, see \u003ca href=\"/docs/16/release-16-5.html\" title=\"E.11. Release 16.5\"\u003eSection E.11\u003c/a\u003e.\u003c/p\u003e","minor":6,"placeholder":false,"source_as_of":"","source_url":"/docs/release/16.6/","status":"stable","status_label":"Supported","support_days":716,"supported":true,"version":"16.6"}],"mode":"release","release_count":1,"remaining_cves":[],"security_as_of":"2026-09-26","security_regressions":[],"source_as_of":"2026-11-19","stats":[{"count":8,"key":"all","label":"All changes"},{"count":0,"key":"feature","label":"Features"},{"count":4,"key":"bugfix","label":"Bug fixes"},{"count":1,"key":"security","label":"Security"},{"count":0,"key":"performance","label":"Performance"},{"count":0,"key":"compatibility","label":"Compatibility"},{"count":3,"key":"improvement","label":"Improvements"}],"to_release":{"age_days":733,"build":"16.6","changes_count":8,"compatibility_count":0,"content_hash":"d7c5a473f2c07430730de28e9b8b76d15e6b665ae65ec35b6dd4bf89b7d15e4a","date":"2024-11-21","date_text":"2024-11-21","doc_git":"b9f0e7232f60f380d642ac9b99226606c254b552","doc_loaded_at":"2026-11-12T17:14:13+00:00","entry_count":8,"eol":"2028-11-09","eol_date":"2028-11-09","label":"16.6","major":"16","manual":"16","manual_build":"16.16","manual_url":"/docs/16/release-16-6.html","migration_html":"\u003cp\u003eA dump/restore is not required for those running 16.X.\u003c/p\u003e\n\u003cp\u003eHowever, if you are upgrading from a version earlier than 16.5, see \u003ca href=\"/docs/16/release-16-5.html\" title=\"E.11. Release 16.5\"\u003eSection E.11\u003c/a\u003e.\u003c/p\u003e","minor":6,"placeholder":false,"source_as_of":"","source_url":"/docs/release/16.6/","status":"stable","status_label":"Supported","support_days":716,"supported":true,"version":"16.6"},"total":8,"warnings":[]}
