Skip to content

cli/dump: fails with column-less tables #37768

@lopezator

Description

@lopezator

To Reproduce

Given an empty database:

CREATE DATABASE foo;
CREATE TABLE bar();
$> cockroach dump --insecure foo

Results in:

CREATE TABLE bar (,
	FAMILY "primary" (rowid)
);
Error: pq: syntax error at or near "from"
Failed running "dump"

Quite evident in the example but can very frustating in a large database.

CC \ @knz

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-disaster-recoveryC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.X-anchored-telemetryThe issue number is anchored by telemetry references.docs-donedocs-known-limitation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions