openfire_postgresql.sql has tested for PG 7.2.
Current PG version is 9.4.
I installed OpenFire to use it. And it works fine.
Some addon for that:
Need create some user which has priviledge only for openfire database, ex. openfireadm. It’s not safety to use some superuser, because users are global in Postgresql instance.
createuser -P -e -D -A -r openfireadm
- give the passwd
Create database openfire, lc-* is important only for sorting, example for Finland:
createdb -O openfireadm -E UTF8 --lc-collate=fi_FI.utf8 --lc-ctype=fi_FE.utf8 openfire
Add to the
The begin of the openfire_postgresql.sql:
– Postgres >=9.x
GRANT ALL ON SCHEMA public TO openfireadm;
GRANT USAGE ON SCHEMA public TO openfireadm;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO openfireadm;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO openfireadm;
– then the old lines
CREATE TABLE ofUser ( …
Then do it:
psql -d openfire -f openfire_postgresql.sql
After those openfireadm own the schema public and all tables in schema public.