Skip to content

refactor: remove support for some problematic memtable properties #11464

@cpcloud

Description

@cpcloud

explicit naming of memtables

This requires us to support overwriting, if someone decides to name two different memtables the same. The implementation of this is pretty dicey.

solution: memtables are always unique, and if you want to name them you have to use create_table.


weakref.finalize cleanup of underlying data

This depends on safe execution of the Python GC at any time, and it's possible to deadlock the interpreter with psycopg using a finalizer that executes a DROP TABLE query.

solution: atexit is probably the best we can do

For backends that use temporary tables we can remove finalizers altogether.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions