Jonathan's Wiki 筆記
Jonathan's Wiki 筆記
  • Themes
    • Themes
    • Default
    • Bootswatch Themes
    • Cerulean
    • Cosmo
    • Cyborg
    • Darkly
    • Flatly
    • Journal
    • Lumen
    • Paper
    • Readable
    • Sandstone
    • Simplex
    • Solar
    • Slate
    • Spacelab
    • Superhero
    • United
    • Yeti
  • 登入

  1. 足跡
  2. PostgreSQL 異常修復紀錄

pgsql tips

側欄
  • 技術分享
  • 找我點這裡
  • 陪兒子玩數學

alpine(15) apache(7) backup(5) centos(15) centos7(7) devops(6) dns(5) docker(26) dokuwiki(12) draft(32) git(5) gitlab(8) gps(5) install(9) k8s(19) linux(29) logserver(7) lvm(6) mail(19) mantis(7) mp3(7) mysql(5) network(7) nfs(6) nginx(8) openssl(5) openvpn(11) perl(11) php(9) proxy(9) pve(22) rancher(8) samba(7) snmp(5) ssh(7) ssl(11) storage(5) subversion(17) svn(20) tips(20) ubuntu(7) vm(6) vpn(7) wordpress(5) 儲存(9) 安裝(26) 密技(37) 經驗(8) 虛擬化(7) 郵件(8)
  • 顯示原始碼
  • 舊版
  • 反向連結
  • Fold/unfold all
  • 回到頁頂

PostgreSQL 異常修復紀錄

出現 ERROR: missing chunk number 0 for toast value 74185 in pg_toast_2619

  • 主要的原因是 ANALYZE 產生的 pg_statistic 有問題, 所以將 pg_statistic 砍掉重建就可以解決 Exp. 異常 table 是 user_tokens

    DELETE FROM pg_catalog.pg_statistic;
    VACUUM analyze user_tokens;

  • 參考網址
    • https://gist.github.com/supix/80f9a6111dc954cf38ee99b9dedf187a
    • https://stackoverflow.com/questions/47533639/postgres-log-file-contains-missing-chunk-number-0-for-toast-value-815441-in-pg
pgsql, tips
  • tech/psql_fix_tips.txt
  • 上一次變更: 2022/04/26 04:53
  • 由 jonathan

cc by sa

若無特別註明,本 wiki 上的內容都是採用以下授權方式:
CC Attribution-Share Alike 4.0 International

  • Bootstrap template for DokuWiki
  • Powered by PHP
  • Valid HTML5
  • Valid CSS
  • Driven by DokuWiki