Lua ile PostgreSQL bağlantı yaparken aşağıdaki hatayı alıyorsanız sebebi eksik kütüphane kurulumu.
lua postgresql Error: Could not find header file for PGSQL
sudo apt install -y luarocks libpq-dev lua-sql-postgres
luarocks PGSQL_INCDIR=/usr/include/postgresql/ install luasql-postgres