Skip to content

Bug: Memory allocation failure #154

@fernandocanizo

Description

@fernandocanizo

Scenario: trying to get ride of some initial lines from an SQL dump file to be able to properly import it on my local Postgres database. File size is around 80GB.

$ sd 'CREATE PROFILE.*' "" db-dump.sql 
memory allocation of 84931776403 bytes failedAborted (core dumped)

An application that tries to emulate or be an easier sed should work with files of any size, by chunks. Not try to load the whole thing in memory. Otherwise I'd just use my favourite editor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-performanceArea: Performance and memory usageC-bugCategory: Something isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions