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 8 / 42
their invoice lines Mas Móvil lets them export the monthly consumptions account_invoice_line has a polymorphic column We need to nd the appropriate invoice lines that match the Mas Móvil data 12 / 42
query from pg_stat_activity where pid = 1824; -[ RECORD 1 ]----+----------------------------------------------------------- query | SELECT "a"."id" AS "id" FROM "import_csv_log" AS "a" WHERE (("a"."parent" IN (3642820))) ORDER BY "a"."date_time" DESC, "a"."id" ASC` https://github.com/coopdevs/handbook/wiki/Investigar-queries-lentas 30 / 42