Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an exception in the Stateful generator on completion #21

Open
jwp opened this issue Jan 31, 2010 · 0 comments
Open

Throw an exception in the Stateful generator on completion #21

jwp opened this issue Jan 31, 2010 · 0 comments

Comments

@jwp
Copy link
Contributor

jwp commented Jan 31, 2010

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant