Skip to content

feat: add query timeout option on ReplicationConnection#748

Merged
josevalim merged 1 commit intoelixir-ecto:masterfrom
edgurgel:feat/replication-connection-query-timeout
Jul 24, 2025
Merged

feat: add query timeout option on ReplicationConnection#748
josevalim merged 1 commit intoelixir-ecto:masterfrom
edgurgel:feat/replication-connection-query-timeout

Conversation

@edgurgel
Copy link
Copy Markdown
Contributor

Sorry it took me so long to finally send this PR!

This PR adds a new possible tuple to be returned on Postgrex.ReplicationConnection callbacks:

{:query, query, query_opts, state} where query_opts can be [timeout: 123] or [timeout: :infinity] for example

I kept the default query timeout as :infinity but not sure if that's the ideal default.

It closes #746

@josevalim josevalim merged commit d990017 into elixir-ecto:master Jul 24, 2025
9 checks passed
@josevalim
Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

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.

ReplicationConnection.start_link with sync_connect: true might block forever

2 participants