Skip to content

Not working to load postgres schema dump changing catalog search_path #156

Closed
@rbauduin

Description

@rbauduin

Describe the Bug
I had a pg_dump generated file (with option --schema-only) which had this statement causing trouble:

SELECT pg_catalog.set_config('search_path', '', false);

the error was

error: pq: relation "schema_migrations" does not exist in line 0: TRUNCATE "schema_migrations"

Steps to Reproduce
Steps to reproduce the behavior:

  1. create a migration which include said statement
  2. run migrate up
  3. See error

Expected Behavior
No error and succesful migration expected.

Migrate Version
4.2.2

Loaded Source Drivers
e.g. s3, github, go-bindata, gcs, file
Obtained by running: migrate -help

Loaded Database Drivers
e.g. spanner, stub, clickhouse, cockroachdb, crdb-postgres, postgres, postgresql, redshift, cassandra, cockroach, mysql
Obtained by running: migrate -help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions