Skip to content

Fix: ENR temp table creation fails for long table names#769

Open
anju15bharti wants to merge 3 commits into
babelfish-for-postgresql:BABEL_6_X_DEV__PG_18_Xfrom
amazon-aurora:BABEL-6433
Open

Fix: ENR temp table creation fails for long table names#769
anju15bharti wants to merge 3 commits into
babelfish-for-postgresql:BABEL_6_X_DEV__PG_18_Xfrom
amazon-aurora:BABEL-6433

Conversation

@anju15bharti

@anju15bharti anju15bharti commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Description

Temp tables with names longer than 63 characters were erroring out because the name was clipped before storing in ENR. Pass the full name to ENR during creation, and use the full ENR name in ALTER TABLE when rebuilding the RangeVar.

Issues Resolved

BABEL-6433

Extension PR : babelfish-for-postgresql/babelfish_extensions#4846

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the PostgreSQL license, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Comment thread src/backend/commands/tablecmds.c Outdated
Comment thread src/backend/commands/tablecmds.c Outdated
@ayushdsh

ayushdsh commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

/code-review

anju15bharti added 2 commits June 9, 2026 13:35
Reverts commits 6368e37 and 0ebb3e6.
The approach of storing full name directly in ENR is replaced by a
new design using a separate orig_name field.
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