Skip to content

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

Open
@rdwebster

Description

@rdwebster

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions