DEV Community

[Comment from a deleted post]
Collapse
 
rrampage profile image
Raunak Ramakrishnan

Great article :)

A strategy I found useful was making views out of very scary looking queries / queries with rather involved business logic. It can be tested/debugged and then be used for querying without further worries. Also, Postgres's \dv makes it easy to list views.