diff --git a/CHANGELOG.md b/CHANGELOG.md index eb14632a6..b0b4e28cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - #3093, Nested empty embeds no longer show empty values and are correctly omitted - @laurenceisla - #3644, Make --dump-schema work with in-database pgrst.db_schemas setting - @wolfgangwalther + - #3644, Show number of timezones in schema cache load report - @wolfgangwalther ## [12.2.1] - 2024-06-27 diff --git a/src/PostgREST/SchemaCache.hs b/src/PostgREST/SchemaCache.hs index b6dca5ba1..3ce106534 100644 --- a/src/PostgREST/SchemaCache.hs +++ b/src/PostgREST/SchemaCache.hs @@ -95,13 +95,14 @@ instance JSON.ToJSON SchemaCache where ] showSummary :: SchemaCache -> Text -showSummary (SchemaCache tbls rels routs reps mediaHdlrs _) = +showSummary (SchemaCache tbls rels routs reps mediaHdlrs tzs) = T.intercalate ", " [ show (HM.size tbls) <> " Relations" , show (HM.size rels) <> " Relationships" , show (HM.size routs) <> " Functions" , show (HM.size reps) <> " Domain Representations" , show (HM.size mediaHdlrs) <> " Media Type Handlers" + , show (S.size tzs) <> " Timezones" ] -- | A view foreign key or primary key dependency detected on its source table