Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get pg_database tuple from disk in vac_update_datfrozenxid.
In vac_update_datfrozenxid.(), the pg_database tuple for current database should be fetched from disk heap table instead of system cache. Since the cache already flatten toast tuple, so if the tuple in pg_database contains toast attribute, heap_inplace_update() will fail with "wrong tuple length". Postgres upstream also has this issue. But since the issue is hot, let's fix in GPDB first. (cherry picked from commit 373e676)
- Loading branch information
1 parent
48b1327
commit cf619ba
Showing
3 changed files
with
155 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters