David Fetter <[EMAIL PROTECTED]> writes: > What would a libpgdump API look like?
Hmm. Start with requirements: * Ability to enumerate the objects in a database * Ability to fetch the "properties" of individual objects (SQL definition is only one property, eg. pg_dump considers owner, schema, ACL separately from the CREATE command) * Ability to identify an appropriate dump order (and perhaps lower-level manipulations of dependency info, not sure what might be needed) * Ability to work with different server versions (not sure how much that impacts the API, but it's definitely something to keep in mind while designing) What else? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers