Skip to content

Postgresql export then import fails #1114

Closed

Description

@sweetppro

What happened?

I tried to export a Postgresql database to sql.gz, delete all tables then re-import the sql.gz file and it fails.
If its relevant; TablePlus successfully imports the exported file with the warning: "error wrong Data encoding"

Steps to reproduce

  1. Open a Postgresql database
  2. Export all tables to sql.gz
  3. Delete all tables in db
  4. Try to Import sql.gz file

Expected behavior

file should be cleanly imported

Database type

PostgreSQL

TablePro version

0.39.1

macOS version & chip

macOS 26.4.1 Apple Silicon

Screenshots / Logs

Image

Activity

  1. added
    bug
    on May 8, 2026
  2. datlechin commented on May 8, 2026

    @datlechin
    Member

    Hi @sweetppro did you export the sql.gz directly in TablePro or via other tools?

  3. sweetppro commented on May 8, 2026

    @sweetppro
    Author

    @datlechin yes I exported directly via the File:Export menu in TablePro

  4. datlechin commented on May 8, 2026

    @datlechin
    Member

    @sweetppro thanks, i'll reproduce on mine

  5. sweetppro commented on May 12, 2026

    @sweetppro
    Author

    @datlechin
    this is unfortunately still occurring in Version 0.40.2 (82)

    CREATE TABLE "public"."webauthn_credentials" (
      id bigint NOT NULL DEFAULT nextval('webauthn_credentials_id_seq'::regclass),
      external_id character varying NOT NULL,
      public_key text NOT NULL,
      sign_count integer NOT NULL DEFAULT 0,
      created_at timestamp(6) without time zone NOT NULL,
      updated_at timestamp(6) without time zone NOT NULL,
      PRIMARY KEY (id)
    )
    
    Error:
    ERROR: relation "webauthn_credentials_id_seq" does not exist
    LINE 2: id bigint NOT NULL DEFAULT nextval ('webauthn_credentials_i...
    ^ (SQLSTATE: 85)
    
  6. sweetppro commented on May 14, 2026

    @sweetppro
    Author

    @datlechin still present in v0.41.
    backup/restore dump also fails

  7. sweetppro commented on May 18, 2026

    @sweetppro
    Author

    v0.43.0 is working well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions