Skip to content

Conversation

@khosrow
Copy link

@khosrow khosrow commented Oct 28, 2025

Towards #28866

This change propagates PostgreSQL schema names from the PgGate layer through the Master to Tablets, and exposes them as a metric attribute for YSQL tables. This enables filtering and aggregation of table-related metrics by schema name, allowing distinction between tables with the same name in different schemas within the same database.

Changes:

  • Add schema_name field to TableInfoPB and SysTablesEntryPB protobufs
  • Extract schema_name from DEPRECATED_pgschema_name in Master's CreateTable
  • Propagate schema_name through CreateTabletRequestPB to tablet servers
  • Add schema_name to TableInfo struct and all copy constructors
  • Expose schema_name as a metric attribute in Tablet::Init for YSQL tables
  • Maintain backward compatibility with empty schema_name default

🤖 Generated with Claude Code

This change propagates PostgreSQL schema names from the PgGate layer
through the Master to Tablets, and exposes them as a metric attribute
for YSQL tables. This enables filtering and aggregation of table-related
metrics by schema name, allowing distinction between tables with the
same name in different schemas within the same database.

Changes:
- Add schema_name field to TableInfoPB and SysTablesEntryPB protobufs
- Extract schema_name from DEPRECATED_pgschema_name in Master's CreateTable
- Propagate schema_name through CreateTabletRequestPB to tablet servers
- Add schema_name to TableInfo struct and all copy constructors
- Expose schema_name as a metric attribute in Tablet::Init for YSQL tables
- Maintain backward compatibility with empty schema_name default

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for infallible-bardeen-164bc9 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 60daf96
🔍 Latest deploy log https://app.netlify.com/projects/infallible-bardeen-164bc9/deploys/6900c137c2a1250008b71603
😎 Deploy Preview https://deploy-preview-29121--infallible-bardeen-164bc9.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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