Skip to content

Remove redundant CheckTablespaceDirectory calls - #2068

Open
chenjinbao1989 wants to merge 1 commit into
apache:mainfrom
chenjinbao1989:rm_tablespace_check
Open

chenjinbao1989 wants to merge 1 commit into
apache:mainfrom
chenjinbao1989:rm_tablespace_check

Conversation

@chenjinbao1989

Copy link
Copy Markdown
Contributor

In pg16, the check for the tablespace directory has been moved to CheckRecoveryConsistency to ensure that the check is only called when xlog recovery is complete. Therefore, we need to remove the other tablespace directory checks.

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


@MisterRaindrop MisterRaindrop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@leborchuk leborchuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, here the commit in PG postgres/postgres@9e4f914

@leborchuk leborchuk added Merge PG16 Project Merge postgres 16 https://github.com/orgs/apache/projects/497 type: Refactoring A code change that neither fixes a bug nor adds a feature labels Oct 5, 2026
In pg16, the check for the tablespace directory has been moved to
CheckRecoveryConsistency to ensure that the check is only called
when xlog recovery is complete. Therefore, we need to remove the
other tablespace directory checks.
@tuhaihe
tuhaihe force-pushed the rm_tablespace_check branch from f6e541b to 5ffdc49 Compare October 5, 2026 19:51
@tuhaihe
tuhaihe enabled auto-merge (rebase) October 5, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merge PG16 Project Merge postgres 16 https://github.com/orgs/apache/projects/497 type: Refactoring A code change that neither fixes a bug nor adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants