Skip to content

FDN-2460: Patch partman5.run_maintenance to avoid table scans#29

Merged
nicolagi merged 1 commit intomainfrom
rmfix
Jun 6, 2024
Merged

FDN-2460: Patch partman5.run_maintenance to avoid table scans#29
nicolagi merged 1 commit intomainfrom
rmfix

Conversation

@nicolagi
Copy link
Copy Markdown
Contributor

@nicolagi nicolagi commented Jun 6, 2024

The real diff this introduces is https://github.com/pgpartman/pg_partman/pull/662/files.

Avoiding table scans helps making run_maintenance fast, which is important because it takes an exclusive lock which prevents other uses of the table that it's processing. (The exclusive lock is acquired when dropping partitions to enforce the retention policy.)

More background in FDN-2442.

The real diff this introduces is https://github.com/pgpartman/pg_partman/pull/662/files.

Avoiding table scans helps making `run_maintenance` fast, which is important because it takes an exclusive lock which prevents other uses of the table that it's processing. (The exclusive lock is acquired when dropping partitions to enforce the retention policy.)

More background in [FDN-2442].
@nicolagi nicolagi merged commit 6a9c429 into main Jun 6, 2024
@nicolagi nicolagi deleted the rmfix branch June 6, 2024 16:14
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