Read more

Heads up: pg_restore --clean keeps existing tables

Arne Hartherz
January 16, 2019Software engineer at makandra GmbH

When restoring a PostgreSQL dump using pg_restore, you usually add the --clean flag to remove any existing data from tables.

Illustration online protection

Rails professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
Read more Show archive.org snapshot

Note that this only removes data from tables that are part of the dump and will not remove any extra tables. You need to do that yourself.

Posted by Arne Hartherz to makandra dev (2019-01-16 11:49)