Functions for PostgreSQL that mimic POSIX basename and dirname. #complete http://www.elfsternberg.com/2016/07/13/added-basename-dirname-postgresql-sped-catalogia-lot/
Go to file
Elf M. Sternberg 6961710f75 Initial check-in of basename/dirname for PostgreSQL. 2016-07-12 15:09:30 -07:00
.gitignore Initial check-in of basename/dirname for PostgreSQL. 2016-07-12 15:09:30 -07:00
LICENSE Initial check-in of basename/dirname for PostgreSQL. 2016-07-12 15:09:30 -07:00
README.rst Initial check-in of basename/dirname for PostgreSQL. 2016-07-12 15:09:30 -07:00
basename.sql Initial check-in of basename/dirname for PostgreSQL. 2016-07-12 15:09:30 -07:00
basename_tests.sql Initial check-in of basename/dirname for PostgreSQL. 2016-07-12 15:09:30 -07:00

README.rst

Synopsis
--------

`basename.sql` contains functions which provide the POSIX-equivalent
functions `basename` and `dirname` of PostgreSQL.  The functions are
written in fairly standard PL/pgSQL, and should work with any version of
PostgreSQL after version 6.

I make no claim that these functions are SQL/PSM-compliant.

LICENSE AND COPYRIGHT NOTICE: NO WARRANTY GRANTED OR IMPLIED
------------------------------------------------------------

Copyright ⓒ 2016 Elf M. Sternberg <elf.sternberg@gmail.com>

Released under The MIT License.  Please see the LICENSE file for more
details.  All rights not clearly enumerated by the LICENSE are reserved
to the authors.