V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Bigscience
V2EX  ›  数据库

PostgreSQL 数据库迁移,表变小了,数据没丢?

  •  
  •   Bigscience · Jan 8, 2024 · 2502 views
    This topic created in 841 days ago, the information mentioned may be changed or developed.

    如题,用 pg_dump 和 psql 将数据库从 psql (PostgreSQL) 14.9 (Ubuntu 14.9-0ubuntu0.22.04.1)迁移到另一个主机的 psql (PostgreSQL) 14.10 (Ubuntu 14.10-0ubuntu0.22.04.1)

    迁移前

    811861704719578_.pic.jpg

    迁移后

    811871704719587_.pic.jpg

    一个表小了 16k ,另一个表小了 3M ,但是数据却没丢,难道是新版本优化了?一个小版本的升级变化有这么大吗?反正作为强迫症,我看着难受

    2 replies    2024-01-08 21:41:05 +08:00
    ccde8259
        1
    ccde8259  
       Jan 8, 2024   ❤️ 2
    vacuum
    Bigscience
        2
    Bigscience  
    OP
       Jan 8, 2024
    @ccde8259 原来如此,谢谢大佬科普
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3831 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:26 · PVG 18:26 · LAX 03:26 · JFK 06:26
    ♥ Do have faith in what you're doing.