Work/PostgreSQL

Postgresql 9.1.4 plpython 설치

Elick 2012. 7. 26. 16:46
root 로 로그인 후 아래 처럼 실행.


[root@pgdb01 ~]#
[root@pgdb01 ~]# yum list  | grep plpython
postgresql-plpython.x86_64             8.4.12-1.el6_2                   updates
postgresql91-plpython.x86_64           9.1.4-3PGDG.rhel6                pgdg91
[root@pgdb01 ~]
[root@pgdb01 ~]# yum install postgresql91-plpython.x86_64
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: ftp.neowiz.com
 * extras: ftp.neowiz.com
 * updates: ftp.neowiz.com
base                                                                                             | 3.7 kB     00:00
extras                                                                                           | 3.0 kB     00:00
pgdg91                                                                                           | 2.8 kB     00:00
pgdg91/primary_db                                                                                | 106 kB     00:00
updates                                                                                          | 3.5 kB     00:00
updates/primary_db                                                                               | 663 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package postgresql91-plpython.x86_64 0:9.1.4-3PGDG.rhel6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
 Package                             Arch                 Version                            Repository            Size
========================================================================================================================
Installing:
 postgresql91-plpython               x86_64               9.1.4-3PGDG.rhel6                  pgdg91                61 k
Transaction Summary
========================================================================================================================
Install       1 Package(s)
Total download size: 61 k
Installed size: 211 k
Is this ok [y/N]: y
Downloading Packages:
postgresql91-plpython-9.1.4-3PGDG.rhel6.x86_64.rpm                                               |  61 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : postgresql91-plpython-9.1.4-3PGDG.rhel6.x86_64                                                       1/1
  Verifying  : postgresql91-plpython-9.1.4-3PGDG.rhel6.x86_64                                                       1/1
Installed:
  postgresql91-plpython.x86_64 0:9.1.4-3PGDG.rhel6
Complete!
[root@pgdb01 ~]#
[root@pgdb01 ~]#
[root@pgdb01 ~]# su - postgres
-bash-4.1$
-bash-4.1$ createlang plpython2u db_patent
-bash-4.1$


한번에 성공하다니... ^0^