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

Allow read-only replicas work even when the context extension is enabled #298

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

drnextgis
Copy link
Collaborator

It fixes the following issue:

postgis=> SELECT search('{}');
NOTICE:  SEARCH: {}
NOTICE:  FILTER: <NULL>
ERROR:  cannot execute SELECT FOR UPDATE in a read-only transaction
CONTEXT:  SQL statement "SELECT *         FROM search_wheres WHERE md5(_where)=inwhere_hash FOR UPDATE"
PL/pgSQL function where_stats(text,boolean,jsonb) line 57 at SQL statement
PL/pgSQL function search(jsonb) line 65 at assignment

I proposed the test in another PR: #297

@drnextgis
Copy link
Collaborator Author

@bitner I wanted to kindly ask if you could take a moment to review the PR 🙏

@bitner bitner merged commit b73d570 into stac-utils:main Aug 26, 2024
15 checks passed
@drnextgis drnextgis deleted the ro-context-enabled branch August 26, 2024 14:14
@drnextgis
Copy link
Collaborator Author

@bitner are there any plans to cut a new release soon?

@mindflayer
Copy link
Contributor

Hi there, I am sorry for stepping in, but we helped with spotting the issue and fixing it, and just knowing when this will be available would really help my team in Satellogic to plan the next steps. Thanks!

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

Successfully merging this pull request may close these issues.

3 participants