Skip to content

Problem: AssertUnwindSafe needed in order to access the Spi result #2

@laurenceisla

Description

@laurenceisla

The Background Worker needs a transaction to use Spi through BackgroundWorker::transaction(). For now I couldn't find a way to access the result from the Spi from outside the transaction without wrapping the variable using AssertUnwindSafe. As seen here:

https://github.com/laurenceisla/pgx_demo/blob/738e69a334ff202d024c07938dcde4b5afab7bfd/src/web_server_async.rs#L70-L74

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions