關於function pg_switch_xlog() does not exist


pg_switch_xlog()  是9.6版本下的命令,強制手動切換歸檔日志

postgres=# select version();
version
---------------------------------------------------------------------------------------------------------
PostgreSQL 11.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18), 64-bit
(1 row)

postgres=# select pg_switch_xlog();
ERROR: function pg_switch_xlog() does not exist
LINE 1: select pg_switch_xlog();
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.

 pg_switch_xlog 在pgsql10以上被pg_switch_wal替換,詳見

https://wiki.postgresql.org/wiki/New_in_postgres_10#Renaming_of_.22xlog.22_to_.22wal.22_Globally_.28and_location.2Flsn.29

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM