Skip to content

Throw an exception in the Stateful generator on completion #21

@jwp

Description

@jwp

Currently, to achieve this, I think it would be necessary to create a custom, child MemoryContext in fn_mcxt; when that gets deleted or reset, throw the "Postgres.CallFinished" exception and clear the call references.

Primary question, is it safe to call the handler inside a MemoryContext delete/reset?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions