There are two application-specific caveats with PostgreSQL's pg_dump script:
- pg_dump does not dump large objects by default
- --oids: Dump object identifiers (OIDs) for every table. Use this option if your application references the OID columns in some way (e.g., in a foreign key constraint). Otherwise, this option should not be used.
- Does Moodle store large objects in a PostgreSQL database?
- Does Moodle use PostgreSQL's OID columns in any way?