APGDIFF(1)
π apgdiff π
okay so apgdiff is another PostgreSQL diff tool π and it compares two dumps so you can see what changed between them. bestie, this page is literally everything you need to know π
β¨ NAME β¨
apgdiff - Another PostgreSQL Diff Tool π¦
β¨ SYNOPSIS β¨
apgdiff [options] <old_dump> <new_dump>
so you toss in your options, then the old dump, then the new dump. easy peasy πΈ
β¨ OPTIONS β¨
--versionβ π shows you which apgdiff version you're running--add-defaultsβ addsDEFAULT ...when a new column has aNOT NULLconstraint but no default value. the default gets dropped again later π§--add-transactionβ wraps your generated diff file withSTART TRANSACTIONandCOMMIT TRANSACTIONβ¨--ignore-function-whitespaceβ ignores extra spaces and new lines when comparing function bodies π
π¨ WARNING: this can make functions look the same when they actually aren't, so only use this one if you really know what you're doing, bestie π
--ignore-start-withβ ignoresSTART WITHchanges on SEQUENCEs. by default these changes are not ignored π--ignore-schema-creationβ you don't need aCREATE SCHEMAcommand on the input schemas anymore π--in-charset-name <charset>β the charset used for reading input files. it has to be a standard charset name that Java supports, and the default is UTF-8 π--out-charset-name <charset>β the charset used for writing output. same deal: standard Java charset name, and the default is UTF-8 π«Ά--output-ignored-statementsβ spills the tea on which DDL statements apgdiff is ignoring right now. it won't output anySELECT,INSERT,UPDATEand/orDELETEstatements though π--ignore-slony-triggersβ when parsing SQL statements, ignores the Slony triggers named_slony_logtriggerand_slony_denyaccessπ¦--list-charsetsβ lists every charset that's supported β
that's the whole vibe, bestie π apgdiff 2.7.0-1, January 2022, APGDIFF(1) ππ§
π¦ where this page comes from
- debian bookworm: apgdiff 2.7.0-1
- debian trixie: apgdiff 2.7.0-1
- ubuntu jammy: apgdiff 2.7.0-1
- ubuntu noble: apgdiff 2.7.0-1
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms