I’m looking for a way to get all rows as INSERT statements from one specific table within a database using pg_dump in PostgreSQL.
E.g., I have table A and all rows in table A I need as INSERT statements, it should also dump those statements to a file.
Is this possible?
if version < 8.4.0
Add
-abefore the-tif you only want the INSERTs, without the CREATE TABLE etc to set up the table in the first place.version >= 8.4.0