Kernel Function Example Postgresql