GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.19k stars 299 forks source link

Make pg_catalog schema visible only when client connect from Postgres protocol #4543

Closed sunng87 closed 4 days ago

sunng87 commented 1 month ago

What type of enhancement is this?

API improvement

What does the enhancement do?

This was a comment from the initial PR of pg_catalog feature #4332 . This pg_catalog is designed to work with postgresql client tools like psql to get meta information of the database. It should only be visible when client connects from postgresql protocol. We should not see it from our mysql clients, and http dashbaord.

Implementation challenges

Check the QueryContext to see current whether current client is from postgresql port or not.

J0HN50N133 commented 1 month ago

assign this to me.