Recherche
...
Pour ne pas avoir à faire les régalges pour chaque base, on peut modifier le template1 de postgres, qui sera utilisé pour la création des bases Nuxe.
Une fois postgreSQL installé :
Bloc de code |
---|
su postgres
psql -d template1
# 1. changement du mot de passe admin
template1=# alter user postgres with password 'MDP';
# 2. modifs pour Nuxeo (voir plus bas)
CREATE FUNCTION pg_catalog.text(integer) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin(int4out($1));';
CREATE CAST (integer AS text) WITH FUNCTION pg_catalog.text(integer) AS IMPLICIT;
COMMENT ON FUNCTION pg_catalog.text(integer) IS 'convert integer to text';
CREATE FUNCTION pg_catalog.text(bigint) RETURNS text STRICT IMMUTABLE LANGUAGE SQL AS 'SELECT textin(int8out($1));';
CREATE CAST (bigint AS text) WITH FUNCTION pg_catalog.text(bigint) AS IMPLICIT;
COMMENT ON FUNCTION pg_catalog.text(bigint) IS 'convert bigint to text';
create language plpgsql;
|
...