apecloud / myduckserver

MySQL & Postgres Analytics, Reimagined
182 stars 8 forks source link

Work around for statements querying "pg_catalog" #182

Closed VWagen1989 closed 1 day ago

VWagen1989 commented 1 day ago

Some clients connected based on PostgreSQL protocol will query the views created under "pg_catalog", which are used for fetching the status of PostgreSQL. Unfortunately, MyDuck can not handle those queries. So we add a temporarily solution to circumvent these queries by intercepting the queries and return the mock data.

However, not all views are mocked now, we just mock those queries sent by the client we have tested so far.