47

PostgreSQL逻辑备份pg_dump使用及其原理解析-yanzongshuai的专栏

 5 years ago
source link: https://blog.51cto.com/yanzongshuai/2367950
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、原理分析1、循环调用getopt_long解析命令行参数,将参数保存到staticDumpOptionsdopt;中2、判断参数是否相容,不相容则退出:options-s/--schema-onlyand-a/--data-onlycannotbeusedtogetheroptions-c/--cleanand-a/--data-onlycannotbeusedtogetheroptions-

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK