Skip to content

badzong/pg_tidyurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pg_tidyurl

pg_tidyurl is a PostgreSQL extension function that optimizes strings for use in urls. It replaces western UTF-8 characters with their ASCII equivalents and removes or encodes special characters.

Prerequisites

PostgreSQL development headers need to be installed. E.g. for Debian systems with Postgres 9.0, install postgresql-server-dev-9.0.

Install

$ make
# cp pg_tidyurl.so /usr/lib/postgresql/9.0/lib/
$ psql dbname

dbname=# \i tidyurl.sql

Example

SELECT tidyurl('äüö') AS tidy;


 tidy
------
 auo

About

PostgreSQL extension function that optimizes strings for use in urls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages