project starts in Berkeley, 1985 POSTGRES v1, 1989 MIT license, 1994 Replaced POSTQUEL with SQL + psql, 1995 Renamed to PostgreSQL and life outside Berkeley, 1996 v6.0 and PostgreSQL Global Development Group, 1997
writer process's activity pg_stat_database: Database-wide stats pg_stat_all_tables: Stats about accesses to each table pg_stat_sys_tables: System tables only pg_stat_user_tables: User tables only (...) pg_stat_xact_all_tables: Stats about current transaction wich are not yet in pg_stat_all_tables (...) pg_stat_user_indexes: Indexes accesses on user tables
custom views SELECT pg_stat_get_backend_pid(s.backendid) AS pid, pg_stat_get_backend_activity(s.backendid) AS query FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;
you access to and analyze how the web app makes use of the schema and data. Your task is to come up with ways to optimize its performance, simplify its manipulation or remove app code. Are intrigued by some other PostgreSQL feature? take the time to play with it with this sample dataset. Be creative and use the docs!
collector and draw conclusions Find ways we could enrich the db schema with views that could make the app code simpler Replace app-level code with PostgreSQL data types and constraints
it with indexes and/or schema changes. The current design might not the best suited for it. Check the app code and see what can be done at the DB level to simplify it. Take a look at model validations.
make it easier to analyze the business in a classic data warehouse? Can you find a way to improve the data integrity of the database with the options PostgreSQL gives us?