Use the following sql script to create PL/Lua ex) psql -f %%PREFIX%%/share/postgresql/contrib/pllua.sql