micronutrientsupport / database-architecture

The Postgres database code for the MAPS tool
3 stars 0 forks source link

household_deficiency_afe_aggregation not updated in refreshAllMaterializedViews call #293

Closed bgsandan closed 2 years ago

bgsandan commented 2 years ago

bgsandan commented 2 years ago

cc: @rbroth - weird behaviour here!

rbroth commented 2 years ago

Is the view created in teh correct schema? I've had problems of db objects accidentally being created in the public schema

bgsandan commented 2 years ago

Yup, top screenshot is the view of all materialized views in the bmgf schema

bgsandan commented 2 years ago

This line is the culprit https://github.com/micronutrientsupport/database-architecture/blob/346dde7aa1a3e4f48cc2394bacdc567847384f25/db/objects/R__105__RefreshAllMaterializedViews.sql#L15 🤦