pgrpm provides functions and operators to mimic rpm behaviour. This is espacialy useful if you want to sort row by version-release and take care of numeric values.
The pgrpmproject is a PostgreSQL Community project that is a part of the pgFoundry.
The pgFoundry page for the project is at http://pgfoundry.org/projects/pgrpm, where you can find downloads, documentation, bug reports, mailing lists, and a whole lot more.