Skip to content

JLockerman/postgres_median_aggregate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coding assignment: Median aggregate

The task of thi coding assignment is to implement an aggregate function that calculates the median over an input set (typically values from a table). Documentation on how to create aggregates can be found in the official PostgreSQL documentation under User-defined Aggregates

A typical median query is:

SELECT median(temp) FROM conditions;

Compiling and installing

To compile and install the extension:

> make
> make install

Note, that depending on installation location, installing the extension might require super-user permissions.

Testing

Tests can be run with

> make installcheck

A few tests are provided with the coding assignement. All of these tests should pass as is. Feel free to add additional tests.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published