Skip to content

Fix deadlock when ddl gets triggered during autovacuum - #126

Open
harshil-goel wants to merge 1 commit into
mainfrom
harshil/ddl-autovacuum-bug
Open

Fix deadlock when ddl gets triggered during autovacuum#126
harshil-goel wants to merge 1 commit into
mainfrom
harshil/ddl-autovacuum-bug

Conversation

@harshil-goel

Copy link
Copy Markdown
Contributor

No description provided.

@harshil-goel
harshil-goel force-pushed the harshil/ddl-autovacuum-bug branch from d92f3ae to a621e8d Compare September 4, 2026 17:41
@harshil-goel
harshil-goel force-pushed the harshil/ddl-autovacuum-bug branch from a621e8d to 75e0841 Compare September 4, 2026 18:05
Comment on lines +293 to +296
let lsn = match bridge.replay_lsn().await? {
0 => None,
lsn => Some(lsn),
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread pgext/overlay.c
Comment on lines +467 to +474
Datum key;
bool isnull;
Oid keyoid;

key = heap_getattr(tup, plan->keyattno, desc, &isnull);
if (isnull)
continue;
keyoid = DatumGetObjectId(key);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's get the C style of mixing declaration & assignment

Comment thread pgext/overlay.c
Comment on lines +430 to +433
if (x < y)
return -1;
return (x > y) ? 1 : 0;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (x < y)
return -1;
return (x > y) ? 1 : 0;
}
return (x > y) - (x < y);
}

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.

2 participants