美文网首页
postgresql move index to fast st

postgresql move index to fast st

作者: lmy_8db4 | 来源:发表于2018-09-26 11:24 被阅读0次
    CREATE TABLESPACE fast_storage LOCATION '/some/ssd' WITH (random_page_cost=1);
    
    ALTER INDEX <index name > SET TABLESPACE fast_storage;
    

    上述方式将会锁表最好用pg_repack

    相关文章

      网友评论

          本文标题:postgresql move index to fast st

          本文链接:https://www.haomeiwen.com/subject/dfsdoftx.html