Skip to content

Feat/normalize config identifiers - #1312

Merged
levkk merged 2 commits into
pgdogdev:mainfrom
nsavvide:feat/normalize-config-identifiers
Aug 5, 2026
Merged

Feat/normalize config identifiers#1312
levkk merged 2 commits into
pgdogdev:mainfrom
nsavvide:feat/normalize-config-identifiers

Conversation

@nsavvide

@nsavvide nsavvide commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a helper method to normalize the identifiers of config files. This follows the same procedure as query parsing per the protocol.

The consumption of the helper is done at resolve_sharded_table on name, schema and column.

Tests have been added aswell 🧪

This PR closes #1238 and helps to reduce the complexity in the following PR: #1236

PostgreSQL converts a Orders -> orders, and "Orders" -> Orders. This
rule should be upheld in the configurations aswell
@CLAassistant

CLAassistant commented Aug 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@codecov

codecov Bot commented Aug 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@levkk levkk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Awesome, thank you!

@levkk
levkk merged commit 370229b into pgdogdev:main Aug 5, 2026
68 of 69 checks passed
@nsavvide
nsavvide deleted the feat/normalize-config-identifiers branch August 5, 2026 21:20
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.

Normalize PostgreSQL identifiers in pgdog.toml

3 participants