Apparently postgres doesn't actually have built in functions to dump DDL then. I wonder how difficult it would have been to create SQL functions out of what is basically psql or pg_dump magic.
Until then, I guess I'll have to muddle though as best I can.