Project

General

Profile

Wiki » History » Version 1

Pablo Alingery, 28/09/2017 10:44

1 1 Pablo Alingery
h1. Netdrms 9.1.1  
2 1 Pablo Alingery
3 1 Pablo Alingery
h2. Posgres 9.4.13 
4 1 Pablo Alingery
5 1 Pablo Alingery
h3. Install additional modules
6 1 Pablo Alingery
7 1 Pablo Alingery
We need dblink for triggers between db 
8 1 Pablo Alingery
9 1 Pablo Alingery
<pre>
10 1 Pablo Alingery
root@sdo1:~# cd /usr/share/postgresql/9.4/extension
11 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# ls -al  dblink--1.1.sql
12 1 Pablo Alingery
-rw-r--r-- 1 root root 5831 Aug 10 14:53 dblink--1.1.sql
13 1 Pablo Alingery
</pre>
14 1 Pablo Alingery
15 1 Pablo Alingery
h4. ias_sdo
16 1 Pablo Alingery
17 1 Pablo Alingery
<pre>
18 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# psql ias_sdo -p5432 -U postgres < dblink--1.1.sql
19 1 Pablo Alingery
Use "CREATE EXTENSION dblink" to load this file.
20 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# 
21 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# 
22 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# 
23 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# psql ias_sdo -U postgres 
24 1 Pablo Alingery
psql (9.4.13)
25 1 Pablo Alingery
Type "help" for help.
26 1 Pablo Alingery
27 1 Pablo Alingery
ias_sdo=# CREATE EXTENSION dblink ;
28 1 Pablo Alingery
ERROR:  extension "dblink" already exists
29 1 Pablo Alingery
ias_sdo=# \q
30 1 Pablo Alingery
</pre>
31 1 Pablo Alingery
32 1 Pablo Alingery
Seems ok !
33 1 Pablo Alingery
34 1 Pablo Alingery
h4. ias_sdo_sums 
35 1 Pablo Alingery
36 1 Pablo Alingery
<pre>
37 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# psql ias_sdo_sums -p5434 -U postgres < dblink--1.1.sql 
38 1 Pablo Alingery
Use "CREATE EXTENSION dblink" to load this file.
39 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# psql ias_sdo_sums -p5434 -U postgres 
40 1 Pablo Alingery
psql (9.4.13)
41 1 Pablo Alingery
Type "help" for help.
42 1 Pablo Alingery
43 1 Pablo Alingery
ias_sdo_sums=#  CREATE EXTENSION dblink ;
44 1 Pablo Alingery
ERROR:  extension "dblink" already exists
45 1 Pablo Alingery
ias_sdo_sums=# \q
46 1 Pablo Alingery
</pre>
47 1 Pablo Alingery
48 1 Pablo Alingery
Seems ok too !
49 1 Pablo Alingery
50 1 Pablo Alingery
h4. ias_sdo_monitor 
51 1 Pablo Alingery
52 1 Pablo Alingery
<pre>
53 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# psql ias_sdo_monitor -p5436 -U postgres < dblink--1.1.sql 
54 1 Pablo Alingery
Use "CREATE EXTENSION dblink" to load this file.
55 1 Pablo Alingery
root@sdo1:/usr/share/postgresql/9.4/extension# psql ias_sdo_monitor -p5436 -U postgres
56 1 Pablo Alingery
psql (9.4.13)
57 1 Pablo Alingery
Type "help" for help.
58 1 Pablo Alingery
59 1 Pablo Alingery
ias_sdo_monitor=# CREATE EXTENSION dblink ;
60 1 Pablo Alingery
ERROR:  extension "dblink" already exists
61 1 Pablo Alingery
</pre>
62 1 Pablo Alingery
63 1 Pablo Alingery
Ok too!