Académique Documents
Professionnel Documents
Culture Documents
Pre-requisites on PostgreSQL
text(integer)
text(bigint) in pg_catalog
After installing these functions all newly created databases will use these new cast
functions.
Do this before creating the nuxeo database:
To review: Shall the new role be allowed to create more new roles? (y/n) y
psql -U nuxeo nuxeo
CREATE LANGUAGE 'plpgsql';
mkdir -p /opt/jdbc-drivers
cd ~
wget http://jdbc.postgresql.org/download/postgresql-8.3-
604.jdbc3.jar
cp postgresql-8.3-604.jdbc3.jar
/opt/jboss/server/default/lib/
ls -l /opt/jboss/server/default/lib
http://doc.nuxeo.org/xwiki/bin/view/FAQ/Nuxeo52VcsPostgreSQL
cd /opt/jboss/server/default/deploy/nuxeo.ear/
Notice: We use the Visible Content Store, aka the SQL storage (which is installed by
default) and not JCR:
nano datasources/default-repository-ds.xml
<?xml version="1.0"?>
<connection-factories>
<tx-connection-factory>
<jndi-name>NXRepository/default</jndi-name>
<xa-transaction/>
<track-connection-by-tx/>
<adapter-display-name>Nuxeo SQL Repository
DataSource</adapter-display-name>
<rar-name>nuxeo.ear#nuxeo-core-storage-sql-ra-1.5-
SNAPSHOT.rar</rar-name>
<connection-
definition>org.nuxeo.ecm.core.storage.sql.Repository</connect
ion-definition>
<config-property name="name">default</config-property>
<max-pool-size>20</max-pool-size>
</tx-connection-factory>
</connection-factories>
nano config/default-repository-config.xml
<?xml version="1.0"?>
<component name="default-repository-config">
<extension
target="org.nuxeo.ecm.core.repository.RepositoryService"
point="repository">
<repository name="default"
factory="org.nuxeo.ecm.core.storage.sql.coremodel.SQLRe
positoryFactory">
<repository name="default">
<indexing>
<!-- for H2 (Lucene Analyzer):
<fulltext
analyzer="org.apache.lucene.analysis.fr.FrenchAnalyzer"/>
-->
<!-- for PostgreSQL (Text Search Configuration): --
>
<fulltext analyzer="english"/>
</indexing>
</repository>
</repository>
</extension>
</component>
# Derby
#org.nuxeo.ecm.sql.jena.databaseType=Derby
#org.nuxeo.ecm.sql.jena.databaseTransactionEnabled=false
# PostgreSQL
org.nuxeo.ecm.sql.jena.databaseType=PostgreSQL
nano datasources/unified-nuxeo-ds.xml
<jndi-name>NuxeoDS</jndi-name>
<connection-url>
jdbc:derby:${jboss.server.data.dir}/derby/nuxeo;create=
true
</connection-url>
<driver-
class>org.apache.derby.jdbc.EmbeddedDriver</driver-class>
<user-name>sa</user-name>
<password></password>
</local-tx-datasource>
-->
</datasources>
Start JBoss
elinks http://localhost:8080/nuxeo
Commit changes
hg diff
hg commit (Reason: Enable VCS with PostgreSQL backend)
hg log
up