First you must create these aggregate functions:

пт, 3 янв. 2020 г. в 18:11, Cédric Krier <>:

Cédric Krier <> added the comment:

> but is supported by any version of PostgreSQL.

For me, it is not supported by PostgreSQL:

trunk=# select last(id) from party_party;
ERROR:  function last(integer) does not exist
LINE 1: select last(id) from party_party;
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

python-sql tracker <>