Skip to content

.dump crashes with duckdb 1.1 on a database with a RTree if not loading the spatial extension #391

@rouault

Description

@rouault

Reproducer with duckdb 1.1 binary from https://github.com/duckdb/duckdb/releases/download/v1.1.0/duckdb_cli-linux-amd64.zip:

$ duckdb new.db
INSTALL spatial;
LOAD spatial;

-- Create a table with 10_000_000 random points
CREATE TABLE t1 AS SELECT point::GEOMETRY as geom
FROM st_generatepoints(
        {min_x: 0, min_y: 0, max_x: 10000, max_y: 10000}::BOX_2D,
        10_000_000,
        1337
    );

-- Create an index on the table.
CREATE INDEX my_idx ON t1 USING RTREE (geom);

$ duckdb new.db
LOAD spatial;
.dump   # works

$ duckdb new.db
.dump   # crashes

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