Skip to content

Conversation

@zhangwenchao-123
Copy link
Contributor

When retrieve RelStats, orca use reltuples is whether -1 to decide relation is empty. However, reltuples 0 also means relation is empty.

Authored-by: Zhang Wenchao [email protected]

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


@zhangwenchao-123 zhangwenchao-123 force-pushed the fix_orca_empty_table branch 2 times, most recently from c58eb8d to 351169e Compare November 5, 2025 02:32
When retrieve RelStats, orca use reltuples is whether -1 to decide
relation is empty. However, reltuples 0 also means relation is
empty.

Authored-by: Zhang Wenchao <[email protected]>
@my-ship-it my-ship-it force-pushed the fix_orca_empty_table branch from 351169e to 5956cd3 Compare November 5, 2025 03:32
@my-ship-it my-ship-it merged commit a447003 into apache:main Nov 5, 2025
28 checks passed
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.

3 participants