8000 Support for explicitly setting the SCROLL option via CX configuration · Issue #597 · plv8/plv8 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support for explicitly setting the SCROLL option via CX configuration #597

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

Open
Yashjain715 opened this issue Apr 23, 2025 · 2 comments
Open

Comments

@Yashjain715
Copy link

Hi @JerrySievert ,

In PLv8, the SCROLL option is not explicitly passed during cursor creation. Internally, PostgreSQL determines whether a cursor should support scrolling based on the execution plan ([1]). However, certain plan nodes (e.g., ForeignScan) do not support backward scanning unless the SCROLL option is explicitly enabled in the statement.

Would it be possible to introduce a configurable option from CX to explicitly enable or disable SCROLL ([2])? When set to true, the cursor would always allow backward scanning. When set to false, the system would fall back to the current behavior, evaluating scroll support based on the execution context.

[1] https://github.com/postgres/postgres/blob/master/src/backend/executor/spi.c#L1702
[2] https://github.com/plv8/plv8/blob/r3.2/plv8_func.cc#L678

@JerrySievert
Copy link
Member

I can consider it, but if I did it for a patch version it would be off by default and only enabled with a compiler flag. let me see how the changes would affect users, and give a more definitive answer.

@Yashjain715
Copy link
Author

Thanks for consider this @JerrySievert!

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

2 participants
0