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

Add identifying info to FETCH FORWARD statements from 'fold' query executions #100

Open
rdwebster opened this issue Sep 8, 2022 · 0 comments

Comments

@rdwebster
Copy link

When executing SQL queries with the 'fold' family of functions, could there be some way to control the SQL generated for the "FETCH FORWARD" statements?

If I look at the corresponding activity on the Postgres server, I see a lot of these:
FETCH FORWARD 256 FROM temp1

This makes it quite difficult to match up DB activity with what triggered it.
If one of these queries is running for an unexpectedly long time, I'd like to be able to match it up with our logs somehow.

Perhaps the name of the CURSOR could be optionally provided in the FoldOptions.
Or maybe allow a SQL comment to be provided for the FETCH FORWARD statement.

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

No branches or pull requests

1 participant