ankane/pgsync · error · Error

Cannot resolve table: #{value}

Error message

Cannot resolve table: #{value}

What it means

Error "Cannot resolve table: #{value}" thrown in ankane/pgsync.

Source

Thrown at lib/pgsync/task_resolver.rb:103

        }
      end
    end

    # treats identifiers as if they were quoted (Users == "Users")
    # this is different from Postgres (Users == "users")
    #
    # TODO add support for quoted identifiers like "my.schema"."my.table"
    # so it's possible to specify identifiers with "." in them
    def to_table(value)
      parts = value.split(".")
      case parts.size
      when 1
        # unknown schema
        Table.new(nil, parts[0])
      when 2
        Table.new(*parts)
      else
        raise Error, "Cannot resolve table: #{value}"
      end
    end

    def default_tasks
      shared_tables.map do |table|
        {
          table: table
        }
      end
    end

    # tables that exists in both source and destination
    # used when no tables specified, or a wildcard
    # removes excluded tables and filters by schema
    def shared_tables
      tables = filter_tables(source.tables)

      unless opts[:schema_only] || opts[:schema_first]

View on GitHub (pinned to 57bdddf5db)

When it happens

Trigger: Thrown at lib/pgsync/task_resolver.rb:103 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ankane/pgsync@57bdddf5db (2026-08-23). Data as JSON: /api/errors/2223625f3064785b. Report an issue: GitHub.