Skip to content

Add new self-written https client for etcd#40

Open
if-loop69420 wants to merge 5 commits into
fix/etcd-fdw-stabilityfrom
rewrite/etcd_sync
Open

Add new self-written https client for etcd#40
if-loop69420 wants to merge 5 commits into
fix/etcd-fdw-stabilityfrom
rewrite/etcd_sync

Conversation

@if-loop69420

Copy link
Copy Markdown
Contributor

Found the bug!

Not only doesn't async work, but what was really causing the issues with the stored procedure with the for loop was that supabase_wrappers automatically drops the fdw state after scans (which means cached plans cause usage after free).

What was done?

  • Add etcd_client subcrate that uses http to communicate with etcd
  • Update supabase_wrappers (just commenting out the line with the premature drop)

Please check if this works with your usecase/deployments and merge if it works (give me feedback if it doesn't)

Currently has 9/9 test passes, but still segfaults
we didn't reset the state in begin_scan (and didn't set fetch_pos =0 in
rescan)
@if-loop69420 if-loop69420 changed the base branch from main to fix/etcd-fdw-stability July 3, 2026 09:31
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.

1 participant