We had a problem with performance on a function that calls lots of other funcitons.
Here is how we found which function was causing the problem.
Script started on Thu 07 Jul 2011 10:43:35 AM PDT �]0;root@prod-db:~�[root@prod-db ~]# cd /tmp �]0;root@prod-db:/tmp�[root@prod-db tmp]# �[2@(reverse-i-search)`':�[C���� �]0;root@prod-db:/tmp�[root@prod-db tmp]# wget http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.no arch.rpm --2011-07-07 10:43:47-- http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm Resolving yum.pgrpms.org... 77.79.103.58 Connecting to yum.pgrpms.org|77.79.103.58|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 4623 (4.5K) [application/x-rpm] Saving to: `pgdg-centos-9.0-2.noarch.rpm' 0% [ ] 0 --.-K/s 100%[======================================>] 4,623 --.-K/s in 0s 2011-07-07 10:43:47 (28.4 MB/s) - `pgdg-centos-9.0-2.noarch.rpm' saved [4623/4623] �]0;root@prod-db:/tmp�[root@prod-db tmp]# yum localinstall pgdg-centos-9.0-2.noarch.rpm --nogpg Loaded plugins: fastestmirror Setting up Local Package Process Examining pgdg-centos-9.0-2.noarch.rpm: pgdg-centos-9.0-2.noarch Marking pgdg-centos-9.0-2.noarch.rpm to be installed Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com addons | 951 B 00:00 addons/primary | 204 B 00:00 base | 2.1 kB 00:00 base/primary_db | 2.2 MB 00:00 extras | 2.1 kB 00:00 extras/primary_db | 260 kB 00:00 updates | 1.9 kB 00:00 updates/primary_db | 664 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package pgdg-centos.noarch 0:9.0-2 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: �[1mpgdg-centos�(B�[m noarch 9.0-2 /pgdg-centos-9.0-2.noarch 2.1 k Transaction Summary ================================================================================ Install 1 Package(s) Upgrade 0 Package(s) Total size: 2.1 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : pgdg-centos [############################## ] 1/1 Installing : pgdg-centos [####################################### ] 1/1 Installing : pgdg-centos 1/1 Installed: pgdg-centos.noarch 0:9.0-2 Complete! �]0;root@prod-db:/tmp�[root@prod-db tmp]# ls /etc/yum.repos.d/ �[00m�[00mCentOS-Base.repo�[00m �[00mCentOS-Media.repo�[00m �[00mpgdg-90-centos.repo�[00m �[m�]0;root@prod-db:/tmp�[root@prod-db tmp]# vim /etc/yum�.�repos.d/C�entOS-OP���[K��[KG���[KG���[KBase.repo �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/etc/yum.repos.d/CentOS-Base.repo" "/etc/yum.repos.d/CentOS-Base.repo" 60L, 2245C�[>c�[1;1H�[34m# CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # #�[m [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repoo�[16;1H=os �[34m#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/�[m gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 �[34m#released updates �[m [updates] name=CentOS-$releasever - Updates�[24;63H1,1 Top�[1;1H�[?12l�[?25h�[?25l�[24;63H2,1 Top�[2;1H�[?12l�[?25h�[?25l�[24;63H3,1 Top�[3;1H�[?12l�[?25h�[?25l�[24;63H4,1 Top�[4;1H�[?12l�[?25h�[?25l�[24;63H5,1 Top�[5;1H�[?12l�[?25h�[?25l�[24;63H6,1 Top�[6;1H�[?12l�[?25h�[?25l�[24;63H7,1 Top�[7;1H�[?12l�[?25h�[?25l�[24;63H8,1 Top�[8;1H�[?12l�[?25h�[?25l�[24;63H9,1 Top�[9;1H�[?12l�[?25h�[?25l�[24;63H10,1 Top�[10;1H�[?12l�[?25h�[?25l�[24;63H11,1 Top�[11;1H�[?12l�[?25h�[?25l�[24;63H12,0-1 Top�[12;1H�[?12l�[?25h�[?25l �[46m[�[mbase�[46m]�[m�[24;63H13,1 Top�[13;1H�[?12l�[?25h�[?25l[base]�[24;63H14,1 Top�[14;1H�[?12l�[?25h�[?25l�[24;63H15,1 Top�[15;1H�[?12l�[?25h�[?25l�[24;63H16,1 Top�[17;1H�[?12l�[?25h�[?25l�[24;63H17,1 Top�[18;1H�[?12l�[?25h�[?25l�[24;63H18,1 Top�[19;1H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;13H�[K�[24;63H19,1 Top�[20;23r�[20;1H�[L�[1;24r�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H19,1 Top�[20;1H�[?12l�[?25h�[?25le�[24;63H19,2 Top�[20;2H�[?12l�[?25h�[?25lx�[24;63H19,3 Top�[20;3H�[?12l�[?25h�[?25lc�[24;63H19,4 Top�[20;4H�[?12l�[?25h�[?25ll�[24;63H19,5 Top�[20;5H�[?12l�[?25h�[?25lu�[24;63H19,6 Top�[20;6H�[?12l�[?25h�[?25le�[24;63H19,7 Top�[20;7H�[?12l�[?25h�[?25l�[20;6H�[K�[24;63H19,6 Top�[20;6H�[?12l�[?25h�[?25ld�[24;63H19,7 Top�[20;7H�[?12l�[?25h�[?25le�[24;63H19,8 Top�[20;8H�[?12l�[?25h�[?25l=�[24;63H19,9 Top�[20;9H�[?12l�[?25h�[?25lp�[24;63H19,10 Top�[20;10H�[?12l�[?25h�[?25lo�[24;63H19,11 Top�[20;11H�[?12l�[?25h�[?25ls�[24;63H19,12 Top�[20;12H�[?12l�[?25h�[?25lt�[24;63H19,13 Top�[20;13H�[?12l�[?25h�[?25lg�[24;63H19,14 Top�[20;14H�[?12l�[?25h�[?25lr�[24;63H19,15 Top�[20;15H�[?12l�[?25h�[?25le�[24;63H19,16 Top�[20;16H�[?12l�[?25h�[?25ls�[24;63H19,17 Top�[20;17H�[?12l�[?25h�[?25l*�[24;63H19,18 Top�[20;18H�[?12l�[?25h�[24;1H�[K�[20;17H�[?25l�[24;63H19,17 Top�[20;17H�[?12l�[?25h�[?25l�[24;63H20,0-1 Top�[21;1H�[?12l�[?25h�[?25l�[24;63H21,17 Top�[22;17H�[?12l�[?25h�[?25l �[46m[�[7C]�[m�[24;63H22,9 Top�[23;9H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[22;1H[�[7C] name=CentOS-$releasever - Updates�[24;63H�[K�[24;63H23,17 2%�[23;17H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2M�[1;24r�[22;1Hmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repoo�[23;1H=updates�[24;63H�[K�[24;63H24,17 7%�[22;17H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/�[m�[24;63H�[K�[24;63H25,17 10%�[23;17H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hgpgcheck=1�[24;63H�[K�[24;63H26,10 12%�[23;10H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5�[24;63H�[K�[24;63H27,17 15%�[23;17H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H28,0-1 17%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#packages used/produced in the build but not released�[m�[24;63H�[K�[24;63H29,17 20%�[23;17H�[?12l�[?25h�[?25l�[24;63H28,0-1 20%�[22;1H�[?12l�[?25h�[?25l�[24;63H27,17 20%�[21;17H�[?12l�[?25h�[?25l�[24;63H26,10 20%�[20;10H�[?12l�[?25h�[?25l�[24;63H27,17 20%�[21;17H�[?12l�[?25h�[?25l exclude=postgres*�[23;1H�[K�[24;63H28,1 19%�[22;1H�[?12l�[?25h�[?25l�[24;63H29,0-1 19%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#packages used/produced in the build but not released�[m�[24;63H�[K�[24;63H30,1 21%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[46m[�[maddons�[46m]�[m�[24;63H�[K�[24;63H31,1 24%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[22;1H[addons] name=CentOS-$releasever - Addons�[24;63H�[K�[24;63H32,1 26%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2M�[1;24r�[22;1Hmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repoo�[23;1H=addons�[24;63H�[K�[24;63H33,1 30%�[22;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/�[m�[24;63H�[K�[24;63H34,1 33%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2M�[1;24r�[22;1Hgpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5�[24;63H�[K�[24;63H35,1 36%�[22;1H�[?12l�[?25h�[?25l�[24;63H36,1 36%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H37,0-1 39%�[23;1H�[?12l�[?25h�[?25l�[24;63H36,1 39%�[22;1H�[?12l�[?25h�[?25l exclude=postgres*�[24;63H37,1 38%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H38,0-1 40%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#additional packages that may be useful�[m�[24;63H�[K�[24;63H39,1 42%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[46m[�[mextras�[46m]�[m�[24;63H�[K�[24;63H40,1 45%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[22;1H[extras] name=CentOS-$releasever - Extras�[24;63H�[K�[24;63H41,1 47%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2M�[1;24r�[22;1Hmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repoo�[23;1H=extras�[24;63H�[K�[24;63H42,1 51%�[22;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/�[m�[24;63H�[K�[24;63H43,1 53%�[23;1H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"/etc/yum.repos.d/CentOS-Base.repo" "/etc/yum.repos.d/CentOS-Base.repo" 63L, 2299C written �[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# yum list postgresql\* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com addons | 951 B 00:00 base | 2.1 kB 00:00 extras | 2.1 kB 00:00 pgdg90 | 2.8 kB 00:00 pgdg90/primary_db 30% [====- ] 0.0 B/s | 16 kB --:-- ETA pgdg90/primary_db | 52 kB 00:00 updates | 1.9 kB 00:00 Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Available Packages postgresql-jdbc90.x86_64 9.0.801-1PGDG.rhel5 pgdg90 postgresql-jdbc90-debuginfo.x86_64 9.0.801-1PGDG.rhel5 pgdg90 postgresql90.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-contrib.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-debuginfo.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-devel.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-docs.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-jdbc.x86_64 9.0.801-1PGDG.rhel5 pgdg90 postgresql90-jdbc-debuginfo.x86_64 9.0.801-1PGDG.rhel5 pgdg90 postgresql90-libs.i386 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-libs.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-odbc.x86_64 09.00.0200-1PGDG.rhel5 pgdg90 postgresql90-odbc-debuginfo.x86_64 09.00.0200-1PGDG.rhel5 pgdg90 postgresql90-plperl.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-plpython.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-pltcl.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-server.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql90-test.x86_64 9.0.4-1PGDG.rhel5 pgdg90 postgresql_autodoc.noarch 1.40-1.rhel5 pgdg90 �]0;root@prod-db:/tmp�[root@prod-db tmp]# yum install postgresql90.x86_64 postgresql90-contrib.x86_64 postgresql90-libs.x86_64 postgresql90-server.x86_64 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package postgresql90.x86_64 0:9.0.4-1PGDG.rhel5 set to be updated --> Processing Dependency: libxslt.so.1()(64bit) for package: postgresql90 ---> Package postgresql90-contrib.x86_64 0:9.0.4-1PGDG.rhel5 set to be updated --> Processing Dependency: libossp-uuid.so.15()(64bit) for package: postgresql90-contrib ---> Package postgresql90-libs.x86_64 0:9.0.4-1PGDG.rhel5 set to be updated ---> Package postgresql90-server.x86_64 0:9.0.4-1PGDG.rhel5 set to be updated --> Running transaction check ---> Package libxslt.x86_64 0:1.1.17-2.el5_2.2 set to be updated ---> Package uuid.x86_64 0:1.5.1-4.rhel5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: postgresql90 x86_64 9.0.4-1PGDG.rhel5 pgdg90 1.4 M postgresql90-contrib x86_64 9.0.4-1PGDG.rhel5 pgdg90 452 k postgresql90-libs x86_64 9.0.4-1PGDG.rhel5 pgdg90 218 k postgresql90-server x86_64 9.0.4-1PGDG.rhel5 pgdg90 4.8 M Installing for dependencies: libxslt x86_64 1.1.17-2.el5_2.2 base 488 k uuid x86_64 1.5.1-4.rhel5 pgdg90 52 k Transaction Summary ================================================================================ Install 6 Package(s) Upgrade 0 Package(s) Total download size: 7.4 M Is this ok [y/N]: y Downloading Packages: (1/6): uuid-1.5.1-4.rh (0%) 30% [==== ] 0.0 B/s | 16 kB --:-- ETA (1/6): uuid-1.5.1-4.rhel5.x86_64.rpm | 52 kB 00:00 (2/6): postgresql90-li (0%) 7% [- ] 0.0 B/s | 16 kB --:-- ETA (2/6): postgresql90-li (1%) 29% [===- ] 62 kB/s | 64 kB 00:02 ETA (2/6): postgresql90-li (2%) 73% [=========- ] 76 kB/s | 160 kB 00:00 ETA (2/6): postgresql90-libs-9.0.4-1PGDG.rhel5.x86_64.rpm | 218 kB 00:01 (3/6): postgresql90-co (3%) 3% [ ] 0.0 B/s | 16 kB --:-- ETA (3/6): postgresql90-co (4%) 12% [=- ] 52 kB/s | 56 kB 00:07 ETA (3/6): postgresql90-co (5%) 33% [==== ] 67 kB/s | 152 kB 00:04 ETA (3/6): postgresql90-co (7%) 70% [========= ] 96 kB/s | 320 kB 00:01 ETA (3/6): postgresql90-contrib-9.0.4-1PGDG.rhel5.x86_64.rpm | 452 kB 00:01 (4/6): libxslt-1.1.17-2.el5_2.2.x86_64.rpm | 488 kB 00:00 (5/6): postgresql90-9. (16%) 1% [ ] 0.0 B/s | 16 kB --:-- ETA (5/6): postgresql90-9. (16%) 4% [ ] 52 kB/s | 56 kB 00:25 ETA (5/6): postgresql90-9. (18%) 12% [=- ] 72 kB/s | 176 kB 00:16 ETA (5/6): postgresql90-9. (20%) 26% [=== ] 105 kB/s | 368 kB 00:09 ETA (5/6): postgresql90-9. (25%) 50% [====== ] 162 kB/s | 696 kB 00:04 ETA (5/6): postgresql90-9. (32%) 91% [==========- ] 263 kB/s | 1.2 MB 00:00 ETA (5/6): postgresql90-9.0.4-1PGDG.rhel5.x86_64.rpm | 1.4 MB 00:02 (6/6): postgresql90-se (34%) 0% [ ] 0.0 B/s | 16 kB --:-- ETA (6/6): postgresql90-se (35%) 1% [ ] 52 kB/s | 56 kB 01:34 ETA (6/6): postgresql90-se (36%) 3% [ ] 67 kB/s | 152 kB 01:11 ETA (6/6): postgresql90-se (38%) 6% [- ] 95 kB/s | 320 kB 00:48 ETA (6/6): postgresql90-se (42%) 11% [= ] 142 kB/s | 592 kB 00:30 ETA (6/6): postgresql90-se (49%) 23% [==- ] 243 kB/s | 1.1 MB 00:15 ETA (6/6): postgresql90-se (64%) 46% [=====- ] 451 kB/s | 2.2 MB 00:05 ETA (6/6): postgresql90-se (92%) 89% [==========- ] 843 kB/s | 4.3 MB 00:00 ETA (6/6): postgresql90-server-9.0.4-1PGDG.rhel5.x86_64.rpm | 4.8 MB 00:03 -------------------------------------------------------------------------------- Total 673 kB/s | 7.4 MB 00:11 warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897 base/gpgkey | 1.5 kB 00:00 Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : postgresql90-libs [ ] 1/6 Installing : postgresql90-libs [### ] 1/6 Installing : postgresql90-libs [#### ] 1/6 Installing : postgresql90-libs [##### ] 1/6 Installing : postgresql90-libs [######### ] 1/6 Installing : postgresql90-libs [############ ] 1/6 Installing : postgresql90-libs [################ ] 1/6 Installing : postgresql90-libs [################## ] 1/6 Installing : postgresql90-libs [################### ] 1/6 Installing : postgresql90-libs [#################### ] 1/6 Installing : postgresql90-libs [##################### ] 1/6 Installing : postgresql90-libs [###################### ] 1/6 Installing : postgresql90-libs [####################### ] 1/6 Installing : postgresql90-libs [######################## ] 1/6 Installing : postgresql90-libs [########################## ] 1/6 Installing : postgresql90-libs [########################### ] 1/6 Installing : postgresql90-libs [############################ ] 1/6 Installing : postgresql90-libs [############################# ] 1/6 Installing : postgresql90-libs [############################## ] 1/6 Installing : postgresql90-libs [################################ ] 1/6 Installing : postgresql90-libs [################################# ] 1/6 Installing : postgresql90-libs [################################## ] 1/6 Installing : postgresql90-libs [################################### ] 1/6 Installing : postgresql90-libs 1/6 Installing : libxslt [ ] 2/6 Installing : libxslt [# ] 2/6 Installing : libxslt [### ] 2/6 Installing : libxslt [##### ] 2/6 Installing : libxslt [###### ] 2/6 Installing : libxslt [####### ] 2/6 Installing : libxslt [######## ] 2/6 Installing : libxslt [######### ] 2/6 Installing : libxslt [########## ] 2/6 Installing : libxslt [########### ] 2/6 Installing : libxslt [############ ] 2/6 Installing : libxslt [############## ] 2/6 Installing : libxslt [############### ] 2/6 Installing : libxslt [################ ] 2/6 Installing : libxslt [################# ] 2/6 Installing : libxslt [################## ] 2/6 Installing : libxslt [#################### ] 2/6 Installing : libxslt [##################### ] 2/6 Installing : libxslt [###################### ] 2/6 Installing : libxslt [####################### ] 2/6 Installing : libxslt [######################## ] 2/6 Installing : libxslt [######################### ] 2/6 Installing : libxslt [########################## ] 2/6 Installing : libxslt [########################### ] 2/6 Installing : libxslt [############################ ] 2/6 Installing : libxslt [############################# ] 2/6 Installing : libxslt [############################## ] 2/6 Installing : libxslt [############################### ] 2/6 Installing : libxslt [################################ ] 2/6 Installing : libxslt [################################## ] 2/6 Installing : libxslt [################################### ] 2/6 Installing : libxslt [##################################### ] 2/6 Installing : libxslt [###################################### ] 2/6 Installing : libxslt [####################################### ] 2/6 Installing : libxslt [######################################## ] 2/6 Installing : libxslt [######################################### ] 2/6 Installing : libxslt [########################################## ] 2/6 Installing : libxslt [############################################ ] 2/6 Installing : libxslt [############################################# ] 2/6 Installing : libxslt 2/6 Installing : postgresql90 [ ] 3/6 Installing : postgresql90 [# ] 3/6 Installing : postgresql90 [## ] 3/6 Installing : postgresql90 [### ] 3/6 Installing : postgresql90 [#### ] 3/6 Installing : postgresql90 [##### ] 3/6 Installing : postgresql90 [###### ] 3/6 Installing : postgresql90 [####### ] 3/6 Installing : postgresql90 [######## ] 3/6 Installing : postgresql90 [######### ] 3/6 Installing : postgresql90 [########## ] 3/6 Installing : postgresql90 [########### ] 3/6 Installing : postgresql90 [############ ] 3/6 Installing : postgresql90 [############# ] 3/6 Installing : postgresql90 [############## ] 3/6 Installing : postgresql90 [############### ] 3/6 Installing : postgresql90 [################ ] 3/6 Installing : postgresql90 [################# ] 3/6 Installing : postgresql90 [################## ] 3/6 Installing : postgresql90 [################### ] 3/6 Installing : postgresql90 [#################### ] 3/6 Installing : postgresql90 [##################### ] 3/6 Installing : postgresql90 [###################### ] 3/6 Installing : postgresql90 [####################### ] 3/6 Installing : postgresql90 [######################## ] 3/6 Installing : postgresql90 [######################### ] 3/6 Installing : postgresql90 [########################## ] 3/6 Installing : postgresql90 [########################### ] 3/6 Installing : postgresql90 [############################ ] 3/6 Installing : postgresql90 [############################# ] 3/6 Installing : postgresql90 [############################## ] 3/6 Installing : postgresql90 [############################### ] 3/6 Installing : postgresql90 [################################ ] 3/6 Installing : postgresql90 [################################# ] 3/6 Installing : postgresql90 [################################## ] 3/6 Installing : postgresql90 [################################### ] 3/6 Installing : postgresql90 [#################################### ] 3/6 Installing : postgresql90 [##################################### ] 3/6 Installing : postgresql90 [###################################### ] 3/6 Installing : postgresql90 [####################################### ] 3/6 Installing : postgresql90 [######################################## ] 3/6 Installing : postgresql90 3/6 Installing : uuid [#### ] 4/6 Installing : uuid [######################### ] 4/6 Installing : uuid [################################# ] 4/6 Installing : uuid [######################################## ] 4/6 Installing : uuid [######################################### ] 4/6 Installing : uuid [########################################### ] 4/6 Installing : uuid [############################################ ] 4/6 Installing : uuid [############################################# ] 4/6 Installing : uuid [############################################## ] 4/6 Installing : uuid [################################################ ] 4/6 Installing : uuid 4/6 Installing : postgresql90-server [ ] 5/6 Installing : postgresql90-server [# ] 5/6 Installing : postgresql90-server [## ] 5/6 Installing : postgresql90-server [### ] 5/6 Installing : postgresql90-server [#### ] 5/6 Installing : postgresql90-server [##### ] 5/6 Installing : postgresql90-server [###### ] 5/6 Installing : postgresql90-server [####### ] 5/6 Installing : postgresql90-server [######## ] 5/6 Installing : postgresql90-server [######### ] 5/6 Installing : postgresql90-server [########## ] 5/6 Installing : postgresql90-server [########### ] 5/6 Installing : postgresql90-server [############ ] 5/6 Installing : postgresql90-server [############# ] 5/6 Installing : postgresql90-server [############## ] 5/6 Installing : postgresql90-server [############### ] 5/6 Installing : postgresql90-server [################ ] 5/6 Installing : postgresql90-server [################# ] 5/6 Installing : postgresql90-server [################## ] 5/6 Installing : postgresql90-server [################### ] 5/6 Installing : postgresql90-server [#################### ] 5/6 Installing : postgresql90-server [##################### ] 5/6 Installing : postgresql90-server [###################### ] 5/6 Installing : postgresql90-server [####################### ] 5/6 Installing : postgresql90-server [######################## ] 5/6 Installing : postgresql90-server [######################### ] 5/6 Installing : postgresql90-server [########################## ] 5/6 Installing : postgresql90-server [########################### ] 5/6 Installing : postgresql90-server [############################ ] 5/6 Installing : postgresql90-server [############################# ] 5/6 Installing : postgresql90-server [############################## ] 5/6 Installing : postgresql90-server [############################### ] 5/6 Installing : postgresql90-server [################################ ] 5/6 Installing : postgresql90-server [################################# ] 5/6 Installing : postgresql90-server 5/6 Installing : postgresql90-contrib [ ] 6/6 Installing : postgresql90-contrib [## ] 6/6 Installing : postgresql90-contrib [### ] 6/6 Installing : postgresql90-contrib [#### ] 6/6 Installing : postgresql90-contrib [##### ] 6/6 Installing : postgresql90-contrib [###### ] 6/6 Installing : postgresql90-contrib [####### ] 6/6 Installing : postgresql90-contrib [######## ] 6/6 Installing : postgresql90-contrib [######### ] 6/6 Installing : postgresql90-contrib [########## ] 6/6 Installing : postgresql90-contrib [########### ] 6/6 Installing : postgresql90-contrib [############# ] 6/6 Installing : postgresql90-contrib [############## ] 6/6 Installing : postgresql90-contrib [############### ] 6/6 Installing : postgresql90-contrib [################ ] 6/6 Installing : postgresql90-contrib [################# ] 6/6 Installing : postgresql90-contrib [################## ] 6/6 Installing : postgresql90-contrib [#################### ] 6/6 Installing : postgresql90-contrib [##################### ] 6/6 Installing : postgresql90-contrib [###################### ] 6/6 Installing : postgresql90-contrib [####################### ] 6/6 Installing : postgresql90-contrib [######################## ] 6/6 Installing : postgresql90-contrib [######################### ] 6/6 Installing : postgresql90-contrib [########################## ] 6/6 Installing : postgresql90-contrib [########################### ] 6/6 Installing : postgresql90-contrib [############################ ] 6/6 Installing : postgresql90-contrib [############################# ] 6/6 Installing : postgresql90-contrib [############################## ] 6/6 Installing : postgresql90-contrib [############################### ] 6/6 Installing : postgresql90-contrib [################################ ] 6/6 Installing : postgresql90-contrib 6/6 Installed: postgresql90.x86_64 0:9.0.4-1PGDG.rhel5 postgresql90-contrib.x86_64 0:9.0.4-1PGDG.rhel5 postgresql90-libs.x86_64 0:9.0.4-1PGDG.rhel5 postgresql90-server.x86_64 0:9.0.4-1PGDG.rhel5 Dependency Installed: libxslt.x86_64 0:1.1.17-2.el5_2.2 uuid.x86_64 0:1.5.1-4.rhel5 Complete! �]0;root@prod-db:/tmp�[root@prod-db tmp]# yum list postgis\* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Available Packages postgis90.x86_64 1.5.2-1.rhel5 pgdg90 postgis90-debuginfo.x86_64 1.5.2-1.rhel5 pgdg90 postgis90-docs.x86_64 1.5.2-1.rhel5 pgdg90 postgis90-utils.x86_64 1.5.2-1.rhel5 pgdg90 �]0;root@prod-db:/tmp�[root@prod-db tmp]# yum install postgis90 postgis90-utils Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package postgis90.x86_64 0:1.5.2-1.rhel5 set to be updated --> Processing Dependency: proj for package: postgis90 --> Processing Dependency: geos for package: postgis90 --> Processing Dependency: libgeos_c.so.1()(64bit) for package: postgis90 --> Processing Dependency: libproj.so.0()(64bit) for package: postgis90 ---> Package postgis90-utils.x86_64 0:1.5.2-1.rhel5 set to be updated --> Processing Dependency: perl-DBD-Pg for package: postgis90-utils --> Running transaction check ---> Package geos.x86_64 0:3.2.2-1.rhel5 set to be updated ---> Package perl-DBD-Pg.x86_64 0:1.49-2.el5_3.1 set to be updated --> Processing Dependency: perl-DBI >= 1.38 for package: perl-DBD-Pg --> Processing Dependency: perl(DBI) for package: perl-DBD-Pg --> Processing Dependency: libpq.so.4()(64bit) for package: perl-DBD-Pg ---> Package proj.x86_64 0:4.7.0-1.rhel5 set to be updated --> Running transaction check ---> Package compat-postgresql-libs.x86_64 0:4-1PGDG.rhel5 set to be updated ---> Package perl-DBI.x86_64 0:1.52-2.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: postgis90 x86_64 1.5.2-1.rhel5 pgdg90 1.6 M postgis90-utils x86_64 1.5.2-1.rhel5 pgdg90 21 k Installing for dependencies: compat-postgresql-libs x86_64 4-1PGDG.rhel5 pgdg90 62 k geos x86_64 3.2.2-1.rhel5 pgdg90 581 k perl-DBD-Pg x86_64 1.49-2.el5_3.1 base 115 k perl-DBI x86_64 1.52-2.el5 base 600 k proj x86_64 4.7.0-1.rhel5 pgdg90 173 k Transaction Summary ================================================================================ Install 7 Package(s) Upgrade 0 Package(s) Total download size: 3.1 M Is this ok [y/N]: y Downloading Packages: (1/7): postgis90-utils (0%) 76% [=========- ] 0.0 B/s | 16 kB --:-- ETA (1/7): postgis90-utils-1.5.2-1.rhel5.x86_64.rpm | 21 kB 00:00 (2/7): compat-postgres (1%) 25% [=== ] 0.0 B/s | 16 kB --:-- ETA (2/7): compat-postgresql-libs-4-1PGDG.rhel5.x86_64.rpm | 62 kB 00:00 (3/7): perl-DBD-Pg-1.49-2.el5_3.1.x86_64.rpm | 115 kB 00:00 (4/7): proj-4.7.0-1.rh (6%) 9% [= ] 0.0 B/s | 16 kB --:-- ETA (4/7): proj-4.7.0-1.rh (7%) 32% [==== ] 53 kB/s | 56 kB 00:02 ETA (4/7): proj-4.7.0-1.rh (11%) 87% [==========- ] 68 kB/s | 152 kB 00:00 ETA (4/7): proj-4.7.0-1.rhel5.x86_64.rpm | 173 kB 00:01 (5/7): geos-3.2.2-1.rh (12%) 2% [ ] 0.0 B/s | 16 kB --:-- ETA (5/7): geos-3.2.2-1.rh (13%) 11% [= ] 64 kB/s | 64 kB 00:08 ETA (5/7): geos-3.2.2-1.rh (16%) 27% [=== ] 78 kB/s | 160 kB 00:05 ETA (5/7): geos-3.2.2-1.rh (22%) 57% [======- ] 107 kB/s | 336 kB 00:02 ETA (5/7): geos-3.2.2-1.rhel5.x86_64.rpm | 581 kB 00:01 (6/7): perl-DBI-1.52-2.el5.x86_64.rpm | 600 kB 00:00 (7/7): postgis90-1.5.2 (49%) 0% [ ] 0.0 B/s | 16 kB --:-- ETA (7/7): postgis90-1.5.2 (50%) 3% [ ] 53 kB/s | 56 kB 00:29 ETA (7/7): postgis90-1.5.2 (53%) 9% [= ] 68 kB/s | 152 kB 00:21 ETA (7/7): postgis90-1.5.2 (58%) 19% [== ] 97 kB/s | 320 kB 00:13 ETA (7/7): postgis90-1.5.2 (68%) 38% [====- ] 152 kB/s | 632 kB 00:06 ETA (7/7): postgis90-1.5.2 (90%) 80% [=========- ] 278 kB/s | 1.3 MB 00:01 ETA (7/7): postgis90-1.5.2-1.rhel5.x86_64.rpm | 1.6 MB 00:02 -------------------------------------------------------------------------------- Total 390 kB/s | 3.1 MB 00:08 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : geos [# ] 1/7 Installing : geos [### ] 1/7 Installing : geos [##### ] 1/7 Installing : geos [###### ] 1/7 Installing : geos [######## ] 1/7 Installing : geos [########## ] 1/7 Installing : geos [############ ] 1/7 Installing : geos [############## ] 1/7 Installing : geos [################ ] 1/7 Installing : geos [################## ] 1/7 Installing : geos [################### ] 1/7 Installing : geos [##################### ] 1/7 Installing : geos [####################### ] 1/7 Installing : geos [######################## ] 1/7 Installing : geos [########################## ] 1/7 Installing : geos [############################ ] 1/7 Installing : geos [############################## ] 1/7 Installing : geos [################################ ] 1/7 Installing : geos [################################## ] 1/7 Installing : geos [#################################### ] 1/7 Installing : geos [##################################### ] 1/7 Installing : geos [####################################### ] 1/7 Installing : geos [######################################### ] 1/7 Installing : geos [########################################### ] 1/7 Installing : geos [############################################ ] 1/7 Installing : geos [############################################## ] 1/7 Installing : geos [############################################### ] 1/7 Installing : geos [################################################ ] 1/7 Installing : geos 1/7 Installing : proj [# ] 2/7 Installing : proj [### ] 2/7 Installing : proj [#### ] 2/7 Installing : proj [##### ] 2/7 Installing : proj [######## ] 2/7 Installing : proj [################ ] 2/7 Installing : proj [######################## ] 2/7 Installing : proj [############################### ] 2/7 Installing : proj [####################################### ] 2/7 Installing : proj [######################################### ] 2/7 Installing : proj [############################################## ] 2/7 Installing : proj [############################################### ] 2/7 Installing : proj [################################################ ] 2/7 Installing : proj 2/7 Installing : postgis90 [ ] 3/7 Installing : postgis90 [# ] 3/7 Installing : postgis90 [## ] 3/7 Installing : postgis90 [### ] 3/7 Installing : postgis90 [#### ] 3/7 Installing : postgis90 [##### ] 3/7 Installing : postgis90 [###### ] 3/7 Installing : postgis90 [####### ] 3/7 Installing : postgis90 [######## ] 3/7 Installing : postgis90 [######### ] 3/7 Installing : postgis90 [########## ] 3/7 Installing : postgis90 [########### ] 3/7 Installing : postgis90 [############ ] 3/7 Installing : postgis90 [############# ] 3/7 Installing : postgis90 [############## ] 3/7 Installing : postgis90 [############### ] 3/7 Installing : postgis90 [################ ] 3/7 Installing : postgis90 [################# ] 3/7 Installing : postgis90 [################## ] 3/7 Installing : postgis90 [################### ] 3/7 Installing : postgis90 [#################### ] 3/7 Installing : postgis90 [##################### ] 3/7 Installing : postgis90 [###################### ] 3/7 Installing : postgis90 [####################### ] 3/7 Installing : postgis90 [######################## ] 3/7 Installing : postgis90 [######################### ] 3/7 Installing : postgis90 [########################## ] 3/7 Installing : postgis90 [########################### ] 3/7 Installing : postgis90 [############################ ] 3/7 Installing : postgis90 [############################# ] 3/7 Installing : postgis90 [############################## ] 3/7 Installing : postgis90 [############################### ] 3/7 Installing : postgis90 [################################ ] 3/7 Installing : postgis90 [################################# ] 3/7 Installing : postgis90 [################################## ] 3/7 Installing : postgis90 [################################### ] 3/7 Installing : postgis90 [#################################### ] 3/7 Installing : postgis90 [##################################### ] 3/7 Installing : postgis90 [###################################### ] 3/7 Installing : postgis90 [####################################### ] 3/7 Installing : postgis90 [######################################## ] 3/7 Installing : postgis90 [######################################### ] 3/7 Installing : postgis90 [########################################## ] 3/7 Installing : postgis90 [########################################### ] 3/7 Installing : postgis90 3/7 Installing : perl-DBI [ ] 4/7 Installing : perl-DBI [# ] 4/7 Installing : perl-DBI [## ] 4/7 Installing : perl-DBI [### ] 4/7 Installing : perl-DBI [##### ] 4/7 Installing : perl-DBI [######## ] 4/7 Installing : perl-DBI [######### ] 4/7 Installing : perl-DBI [############ ] 4/7 Installing : perl-DBI [############## ] 4/7 Installing : perl-DBI [############### ] 4/7 Installing : perl-DBI [################# ] 4/7 Installing : perl-DBI [################## ] 4/7 Installing : perl-DBI [################### ] 4/7 Installing : perl-DBI [##################### ] 4/7 Installing : perl-DBI [###################### ] 4/7 Installing : perl-DBI [####################### ] 4/7 Installing : perl-DBI [######################## ] 4/7 Installing : perl-DBI [######################### ] 4/7 Installing : perl-DBI [########################## ] 4/7 Installing : perl-DBI [########################### ] 4/7 Installing : perl-DBI [############################ ] 4/7 Installing : perl-DBI [############################## ] 4/7 Installing : perl-DBI [############################### ] 4/7 Installing : perl-DBI [################################ ] 4/7 Installing : perl-DBI [################################# ] 4/7 Installing : perl-DBI [################################### ] 4/7 Installing : perl-DBI [##################################### ] 4/7 Installing : perl-DBI [###################################### ] 4/7 Installing : perl-DBI [######################################## ] 4/7 Installing : perl-DBI [######################################### ] 4/7 Installing : perl-DBI [########################################## ] 4/7 Installing : perl-DBI [########################################### ] 4/7 Installing : perl-DBI [############################################ ] 4/7 Installing : perl-DBI 4/7 Installing : compat-postgresql-libs [############## ] 5/7 Installing : compat-postgresql-libs [############################ ] 5/7 Installing : compat-postgresql-libs [############################## ] 5/7 Installing : compat-postgresql-libs 5/7 Installing : perl-DBD-Pg [ ] 6/7 Installing : perl-DBD-Pg [########## ] 6/7 Installing : perl-DBD-Pg [################ ] 6/7 Installing : perl-DBD-Pg [########################## ] 6/7 Installing : perl-DBD-Pg [#################################### ] 6/7 Installing : perl-DBD-Pg [###################################### ] 6/7 Installing : perl-DBD-Pg [######################################### ] 6/7 Installing : perl-DBD-Pg 6/7 Installing : postgis90-utils [ ] 7/7 Installing : postgis90-utils [# ] 7/7 Installing : postgis90-utils [############## ] 7/7 Installing : postgis90-utils [################# ] 7/7 Installing : postgis90-utils [######################## ] 7/7 Installing : postgis90-utils [########################### ] 7/7 Installing : postgis90-utils [############################ ] 7/7 Installing : postgis90-utils [############################## ] 7/7 Installing : postgis90-utils [################################# ] 7/7 Installing : postgis90-utils [################################### ] 7/7 Installing : postgis90-utils [##################################### ] 7/7 Installing : postgis90-utils 7/7 Installed: postgis90.x86_64 0:1.5.2-1.rhel5 postgis90-utils.x86_64 0:1.5.2-1.rhel5 Dependency Installed: compat-postgresql-libs.x86_64 0:4-1PGDG.rhel5 geos.x86_64 0:3.2.2-1.rhel5 perl-DBD-Pg.x86_64 0:1.49-2.el5_3.1 perl-DBI.x86_64 0:1.52-2.el5 proj.x86_64 0:4.7.0-1.rhel5 Complete! �]0;root@prod-db:/tmp�[root@prod-db tmp]# sudo usage: sudo -h | -K | -k | -L | -V usage: sudo -v [-AknS] [-p prompt] usage: sudo -l[l] [-AknS] [-g groupname|#gid] [-p prompt] [-U username] [-u username|#uid] [-g groupname|#gid] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p prompt] [-u username|#uid] [-g groupname|#gid] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C fd] [-g groupname|#gid] [-p prompt] [-u username|#uid] file ... �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# sudo -�������[Kmkdir -p /data/9.0/data �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Kdf -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 3.9G 1.1G 2.7G 29% / /dev/sda7 2.0G 71M 1.8G 4% /var /dev/sda6 2.0G 36M 1.9G 2% /home /dev/sda3 3.9G 73M 3.7G 2% /pg_xlog /dev/sda2 16G 173M 15G 2% /data tmpfs 3.9G 0 3.9G 0% /dev/shm �]0;root@prod-db:/tmp�[root@prod-db tmp]# ls /var/log �[00m�[00macpid�[00m �[00mboot.log�[00m �[00;34mcups�[00m �[00mmaillog�[00m �[00;34mppp�[00m �[00mtallylog�[00m �[00manaconda.log�[00m �[00mbtmp�[00m �[00mdmesg�[00m �[00mmcelog�[00m �[00;34mprelink�[00m �[00;34mvbox�[00m �[00manaconda.syslog�[00m �[00;34mconman�[00m �[00mfaillog�[00m �[00mmessages�[00m �[00mrpmpkgs�[00m �[00mwtmp�[00m �[00manaconda.xlog�[00m �[00;34mconman.old�[00m �[00mlastlog�[00m �[00;32mpgsql�[00m �[00msecure�[00m �[00myum.log�[00m �[00;34maudit�[00m �[00mcron�[00m �[00;34mmail�[00m �[00;34mpm�[00m �[00mspooler�[00m �[m�]0;root@prod-db:/tmp�[root@prod-db tmp]# ls /pg_xlog/����������[K/data/����������[K/var/lib/pgsql/data/pg_log��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K/log/pg_log����������������[Kls /data/ /u01���������������[Kvim /etc/fstab �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/etc/fstab" "/etc/fstab" 10L, 760C�[>c�[1;1H�[36mLABEL�[m�[33m=�[m�[31m/�[m�[17C/�[23C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 1�[m �[36mLABEL�[m�[33m=�[m�[31m/var�[m�[14C/var�[20C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/home�[m�[13C/home�[19C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/pg_xlog�[m�[10C/pg_xlog�[16C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/data�[m�[13C/data�[19C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mtmpfs�[m�[19C/dev/shm�[16C�[32mtmpfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mdevpts�[m�[18C/dev/pts�[16C�[32mdevpts�[m �[33mgid=�[m�[31m5�[m�[33m,mode=�[m�[31m620�[m �[31m0 0�[m �[36msysfs�[m�[19C/sys�[20C�[32msysfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mproc�[m�[20C/proc�[19C�[32mproc�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mLABEL�[m�[33m=�[m�[31mSWAP-sda5�[m�[9C�[33mswap�[m�[20C�[32mswap�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[1m�[34m~ �[12;1H~ �[13;1H~ �[14;1H~ �[15;1H~ �[16;1H~ �[17;1H~ �[18;1H~ �[19;1H~ �[20;1H~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H1,1 All�[1;1H�[?12l�[?25h�[?25l�[24;63H2,1 All�[2;1H�[?12l�[?25h�[?25l�[24;63H3,1 All�[3;1H�[?12l�[?25h�[?25l�[24;63H4,1 All�[4;1H�[?12l�[?25h�[?25l�[24;63H4,25 All�[4;25H�[?12l�[?25h�[?25l�[24;63H4,49 All�[4;49H�[?12l�[?25h�[?25l�[24;63H4,57 All�[4;57H�[?12l�[?25h�[?25lefaults �[7C�[31m1 2�[m�[4;75H�[K�[4;57H�[?12l�[?25h�[?25lfaults �[7C�[31m1 2�[m�[4;74H�[K�[4;57H�[?12l�[?25h�[?25laults �[7C�[31m1 2�[m�[4;73H�[K�[4;57H�[?12l�[?25h�[?25lults �[7C�[31m1 2�[m�[4;72H�[K�[4;57H�[?12l�[?25h�[?25llts �[7C�[31m1 2�[m�[4;71H�[K�[4;57H�[?12l�[?25h�[?25lts �[7C�[31m1 2�[m�[4;70H�[K�[4;57H�[?12l�[?25h�[?25ls �[7C�[31m1 2�[m�[4;69H�[K�[4;57H�[?12l�[?25h�[?25l �[7C1 �[1m�[37m�[41m2�[m�[4;68H�[K�[4;57H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;14H�[K�[24;63H4,57 All�[4;57H�[?12l�[?25h�[?25ln�[7C �[31m1 2�[m�[24;63H4,58 All�[4;58H�[?12l�[?25h�[?25lo�[7C �[31m1 2�[m�[24;63H4,59 All�[4;59H�[?12l�[?25h�[?25la�[7C �[31m1 2�[m�[24;63H4,60 All�[4;60H�[?12l�[?25h�[?25lt�[7C �[31m1 2�[m�[24;63H4,61 All�[4;61H�[?12l�[?25h�[?25li�[7C �[31m1 2�[m�[24;63H4,62 All�[4;62H�[?12l�[?25h�[?25lm�[7C �[31m1 2�[m�[24;63H4,63 All�[4;63H�[?12l�[?25h�[?25l�������[33mnoatime�[m�[7C �[31m1 2�[m�[24;63H4,64 All�[4;64H�[?12l�[?25h�[?25l�[33m,�[m�[7C �[31m1 2�[m�[24;63H4,65 All�[4;65H�[?12l�[?25h�[?25ln�[7C �[31m1 2�[m�[24;63H4,66 All�[4;66H�[?12l�[?25h�[?25lo�[7C �[31m1 2�[m�[24;63H4,67 All�[4;67H�[?12l�[?25h�[?25ld�[7C �[31m1 2�[m�[24;63H4,68 All�[4;68H�[?12l�[?25h�[?25li�[7C �[31m1 2�[m�[24;63H4,69 All�[4;69H�[?12l�[?25h�[?25lr�[7C �[31m1 2�[m�[24;63H4,70 All�[4;70H�[?12l�[?25h�[?25l�[5;23r�[5;1H�[L�[1;24r�[4;70Ha�[7C �[31m1 �[5;1H2�[m�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H4,71 All�[4;71H�[?12l�[?25h�[?25lt�[7C �[31m11�[5;1H 2�[m�[24;63H4,72 All�[4;72H�[?12l�[?25h�[?25li�[7C �[5;1H�[31m1 2�[m�[24;63H4,73 All�[4;73H�[?12l�[?25h�[?25lm �[5;1H �[31m1 2�[m�[24;63H4,74 All�[4;74H�[?12l�[?25h�[?25l�[4;65H�[32mnodiratime�[m �[5;1H �[31m1 2�[m�[24;63H4,75 All�[4;75H�[?12l�[?25h�[24;1H�[K�[4;74H�[?25l�[24;63H4,74 All�[4;74H�[?12l�[?25h�[?25l�[24;63H5,74 All�[6;74H�[?12l�[?25h�[?25l�[24;63H5,73 All�[6;73H�[?12l�[?25h�[?25l�[24;63H5,57 All�[6;57H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H5,57 All�[24;1H�[K�[7;23r�[7;1H�[L�[1;24r�[6;57H�[33mnoatime,�[mnodiratimedefaull�[7;1Hts�[8C�[31m1 2�[m�[24;63H5,74 All�[6;74H�[?12l�[?25h��[?25l�[24;63H5,75 All�[6;75H�[?12l�[?25h�[?25lefaultt�[7;1Hs �[7C�[31m1 2�[m�[7;13H�[K�[6;75H�[?12l�[?25h�[?25lfaultss�[7;1H �[7C�[31m1 2�[m�[7;12H�[K�[6;75H�[?12l�[?25h�[?25laults �[7;1H �[31m1 2�[m�[7;11H�[K�[6;75H�[?12l�[?25h�[?25lults �[7;1H �[31m1 2�[m�[7;10H�[K�[6;75H�[?12l�[?25h�[?25llts �[7;1H �[31m1 2�[m�[7;9H�[K�[6;75H�[?12l�[?25h�[?25lts �[7;1H �[31m1 2�[m�[7;8H�[K�[6;75H�[?12l�[?25h�[?25ls �[7;1H �[31m1 2�[m�[7;7H�[K�[6;75H�[?12l�[?25h�[?25l�[6;65H�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[7;6H�[K�[6;75H�[?12l�[?25h��[?25l�[24;63H�[K�[24;1H:�[?12l�[?25he�[?25l :e�[?12l�[?25hw�[?25l :ew�[?12l�[?25h�[?25l :e�[24;3H�[K�[24;1H:e�[?12l�[?25h�[?25l :�[24;2H�[K�[24;1H:�[?12l�[?25he�[?25l :e�[?12l�[?25hw�[?25l :ew�[?12l�[?25h�[?25l :e�[24;3H�[K�[24;1H:e�[?12l�[?25h�[?25l :�[24;2H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"/etc/fstab" "/etc/fstab" 10L, 780C written �[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# les v��[K��[Ks /var/log��������������[Kstat /var/log/messages File: `/var/log/messages' Size: 78994 Blocks: 176 IO Block: 4096 regular file Device: 807h/2055d Inode: 425995 Links: 1 Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-07-07 10:23:37.000000000 -0700 Modify: 2011-07-07 10:51:41.000000000 -0700 Change: 2011-07-07 10:51:41.000000000 -0700 �]0;root@prod-db:/tmp�[root@prod-db tmp]# less /var/log/messages �[?1049h�[?1h�= Jul 6 16:53:40 prod-db syslogd 1.4.1: restart. Jul 6 16:53:40 prod-db kernel: klogd 1.4.1, log source = /proc/kmsg started. Jul 6 16:53:40 prod-db kernel: Linux version 2.6.18-194.el5 (mockbuild@builder1 �0.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 1 �4:58:14 EDT 2010 Jul 6 16:53:40 prod-db kernel: Command line: ro root=LABEL=/ Jul 6 16:53:40 prod-db kernel: BIOS-provided physical RAM map: Jul 6 16:53:40 prod-db kernel: BIOS-e820: 0000000000010000 - 000000000009f800 �(usable) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 000000000009f800 - 00000000000a0000 �(reserved) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 00000000000ca000 - 00000000000cc000 �(reserved) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 00000000000dc000 - 00000000000e4000 �(reserved) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 00000000000e8000 - 0000000000100000 �(reserved) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 0000000000100000 - 00000000bfef0000 �(usable) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 00000000bfef0000 - 00000000bfeff000 �(ACPI data) Jul 6 16:53:40 prod-db kernel: BIOS-e820: 00000000bfeff000 - 00000000bff00000 �(ACPI NVS) �[7m/var/log/messages �[27m�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# less /var/log/messages �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cstat�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C File: `/var/log/messages' Size: 78994 Blocks: 176 IO Block: 4096 regular file Device: 807h/2055d Inode: 425995 Links: 1 Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2011-07-07 10:59:09.000000000 -0700 Modify: 2011-07-07 10:51:41.000000000 -0700 Change: 2011-07-07 10:51:41.000000000 -0700 �]0;root@prod-db:/tmp�[root@prod-db tmp]# v��[K �[2@(reverse-i-search)`':�[C����[24@v': stat /var/log/messages��������������������������[7Pi': vim /etc/fstab������������������[1@m�[C�[C�[C �[5P[root@prod-db tmp]#�[C �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/etc/fstab" "/etc/fstab" 10L, 780C�[>c�[1;1H�[36mLABEL�[m�[33m=�[m�[31m/�[m�[17C/�[23C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 1�[m �[36mLABEL�[m�[33m=�[m�[31m/var�[m�[14C/var�[20C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/home�[m�[13C/home�[19C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/pg_xlog�[m�[10C/pg_xlog�[16C�[32mext3�[m �[33mnoatime,�[m�[32mnodiratime�[m �[5;1H �[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/data�[m�[13C/data�[19C�[32mext3�[m �[33mnoatime,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m �[36mtmpfs�[m�[19C/dev/shm�[16C�[32mtmpfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mdevpts�[m�[18C/dev/pts�[16C�[32mdevpts�[m �[33mgid=�[m�[31m5�[m�[33m,mode=�[m�[31m620�[m �[31m0 0�[m �[36msysfs�[m�[19C/sys�[20C�[32msysfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mproc�[m�[20C/proc�[19C�[32mproc�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mLABEL�[m�[33m=�[m�[31mSWAP-sda5�[m�[9C�[33mswap�[m�[20C�[32mswap�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[1m�[34m~ �[14;1H~ �[15;1H~ �[16;1H~ �[17;1H~ �[18;1H~ �[19;1H~ �[20;1H~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H5,1 All�[6;1H�[?12l�[?25h�[?25l�[24;63H5,25 All�[6;25H�[?12l�[?25h�[?25l�[24;63H5,49 All�[6;49H�[?12l�[?25h�[?25l�[24;63H5,57 All�[6;57H�[?12l�[?25h�[?25loatime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[7;5H�[K�[6;57H�[?12l�[?25h�[?25l�[32matime�[m�[33m,�[m�[32mnodiratime�[m �[7;1H�[31m1 2�[m�[7;4H�[K�[6;57H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;14H�[K�[24;63H5,57 All�[6;57H�[?12l�[?25h�[?25lratime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[24;63H5,58 All�[6;58H�[?12l�[?25h�[?25leatime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[24;63H5,59 All�[6;59H�[?12l�[?25h�[?25llatime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[24;63H5,60 All�[6;60H�[?12l�[?25h�[?25l�atime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[7;6H�[K�[24;63H5,59 All�[6;59H�[?12l�[?25h�[?25l�atime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[7;5H�[K�[24;63H5,58 All�[6;58H�[?12l�[?25h�[?25l��[32matime�[m�[33m,�[m�[32mnodiratime�[m �[7;1H�[31m1 2�[m�[7;4H�[K�[24;63H5,57 All�[6;57H�[?12l�[?25h�[?25lnatime�[33m,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[24;63H5,58 All�[6;58H�[?12l�[?25h�[?25l��[33mnoatime,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m�[24;63H5,59 All�[6;59H�[?12l�[?25h�[24;1H�[K�[6;58H�[?25l�[24;63H5,58 All�[6;58H�[?12l�[?25h���[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"/etc/fstab" "/etc/fstab" 10L, 780C written �[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# man fstab Formatting page, please wait... �[?1049h�[?1h�= FSTAB(5) Linux Programmer’s Manual FSTAB(5) �[1mNAME�[0m fstab - static information about the filesystems �[1mSYNOPSIS�[0m �[1m#include�[0m �[1m<fstab.h>�[0m �[1mDESCRIPTION�[0m The file �[1mfstab�[0m contains descriptive information about the various file systems. �[1mfstab�[0m is only read by programs, and not written; It is the duty of the system administrator to properly create and maintain this file. Each filesystem is described on a separate line; fields on each line are separated by tabs or spaces. Lines starting with ’#’ are com- ments. The order of records in �[1mfstab�[0m is important because �[1mfsck�[0m(8), �[1mmount�[0m(8), and �[1mumount�[0m(8) sequentially iterate through �[1mfstab�[0m doing their thing. The first field, (�[4mfs_spec�[24m), describes the block special device or remote filesystem to be mounted. For ordinary mounts it will hold (a link to) a block special device node (as created by �[1mmknod�[0m(8)) for the device to be mounted, like :�[K �[K ‘/dev/cdrom’ or ‘/dev/sdb7’. For NFS mounts one will have <host>:<dir>, e.g., ‘knuth.aeb.nl:/’. For procfs, use ‘proc’. Instead of giving the device explicitly, one may indicate the (ext2 or xfs) filesystem that is to be mounted by its UUID or volume label (cf. �[1me2label�[0m(8) or �[1mxfs_admin�[0m(8)), writing LABEL=<label> or UUID=<uuid>, e.g., ‘LABEL=Boot’ or ‘UUID=3e6be9de-8139-11d1-9106-a43f08d823a6’. This will make the system more robust: adding or removing a SCSI disk changes the disk device name but not the filesystem volume label. The second field, (�[4mfs_file�[24m), describes the mount point for the filesys- tem. For swap partitions, this field should be specified as ‘none’. If the name of the mount point contains spaces these can be escaped as ‘\040’. The third field, (�[4mfs_vfstype�[24m), describes the type of the filesystem. Linux supports lots of filesystem types, such as �[4madfs�[24m, �[4maffs�[24m, �[4mautofs�[24m, �[4mcoda�[24m, �[4mcoherent�[24m, �[4mcramfs�[24m, �[4mdevpts�[24m, �[4mefs�[24m, �[4mext2�[24m, �[4mext3�[24m, �[4mhfs�[24m, �[4mhpfs�[24m, �[4miso9660�[24m, �[4mjfs�[24m, �[4mminix�[24m, �[4mmsdos�[24m, �[4mncpfs�[24m, �[4mnfs�[24m, �[4mntfs�[24m, �[4mproc�[24m, �[4mqnx4�[24m, �[4mreiserfs�[24m, �[4mromfs�[24m, �[4msmbfs�[24m, �[4msysv�[24m, �[4mtmpfs�[24m, �[4mudf�[24m, �[4mufs�[24m, �[4mumsdos�[24m, �[4mvfat�[24m, �[4mxenix�[24m, �[4mxfs�[24m, and possibly others. For more details, see �[1mmount�[0m(8). For the filesystems currently supported by the running kernel, see �[4m/proc/filesystems�[24m. An entry �[4mswap�[24m denotes a file or partition to be used for swapping, cf. �[1mswapon�[0m(8). An :�[K �[K entry �[4mignore�[24m causes the line to be ignored. This is useful to show disk partitions which are currently unused. The fourth field, (�[4mfs_mntops�[24m), describes the mount options associated with the filesystem. It is formatted as a comma separated list of options. It contains at least the type of mount plus any additional options appropriate to the filesystem type. For documentation on the available options for non- nfs file systems, see �[1mmount�[0m(8). For documentation on all nfs-specific options have a look at �[1mnfs�[0m(5). Common for all types of file system are the options ‘‘noauto’’ (do not mount when "mount -a" is given, e.g., at boot time), ‘‘user’’ (allow a user to mount), ‘‘owner’’ (allow device owner to mount), ‘‘pamconsole’’ (allow a user at the console to mount), and ‘‘comment’’ (e.g., for use by fstab-maintaining programs). The ‘‘owner’’, ‘‘pamconsole’’ and ‘‘comment’’ options are Linux-specific. For more details, see �[1mmount�[0m(8). The fifth field, (�[4mfs_freq�[24m), is used for these filesystems by the �[1mdump�[0m(8) command to determine which filesystems need to be dumped. If the fifth field is not present, a value of zero is returned and �[1mdump�[0m will assume that the filesystem does not need to be dumped. :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K The sixth field, (�[4mfs_passno�[24m), is used by the �[1mfsck�[0m(8) program to deter- :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K mine the order in which filesystem checks are done at reboot time. The :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K root filesystem should be specified with a �[4mfs_passno�[24m of 1, and other :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K filesystems should have a �[4mfs_passno�[24m of 2. Filesystems within a drive :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K will be checked sequentially, but filesystems on different drives will :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K be checked at the same time to utilize parallelism available in the :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K hardware. If the sixth field is not present or zero, a value of zero :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K is returned and �[1mfsck�[0m will assume that the filesystem does not need to :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K be checked. :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K The proper way to read records from �[1mfstab�[0m is to use the routines �[1mgetmn-�[0m :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K �[1mtent�[0m(3). :�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# man fstab���������vim /etc/fstab �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/etc/fstab" "/etc/fstab" 10L, 780C�[>c�[1;1H�[36mLABEL�[m�[33m=�[m�[31m/�[m�[17C/�[23C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 1�[m �[36mLABEL�[m�[33m=�[m�[31m/var�[m�[14C/var�[20C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/home�[m�[13C/home�[19C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/pg_xlog�[m�[10C/pg_xlog�[16C�[32mext3�[m �[33mnoatime,�[m�[32mnodiratime�[m �[5;1H �[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/data�[m�[13C/data�[19C�[32mext3�[m �[33mnoatime,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m �[36mtmpfs�[m�[19C/dev/shm�[16C�[32mtmpfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mdevpts�[m�[18C/dev/pts�[16C�[32mdevpts�[m �[33mgid=�[m�[31m5�[m�[33m,mode=�[m�[31m620�[m �[31m0 0�[m �[36msysfs�[m�[19C/sys�[20C�[32msysfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mproc�[m�[20C/proc�[19C�[32mproc�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mLABEL�[m�[33m=�[m�[31mSWAP-sda5�[m�[9C�[33mswap�[m�[20C�[32mswap�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[1m�[34m~ �[14;1H~ �[15;1H~ �[16;1H~ �[17;1H~ �[18;1H~ �[19;1H~ �[20;1H~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H5,1 All�[6;1H�[?12l�[?25h�[?25l�[24;63H4,1 All�[4;1H�[?12l�[?25h�[?25l�[24;63H3,1 All�[3;1H�[?12l�[?25h�[?25l�[24;63H2,1 All�[2;1H�[?12l�[?25h�[?25l�[24;63H1,1 All�[1;1H�[?12l�[?25h���[?25l�[24;63H1,75 All�[1;75H�[?12l�[?25h�[?25l�[24;63H2,75 All�[2;75H�[?12l�[?25h�[?25l�[24;63H3,75 All�[3;75H�[?12l�[?25h�[?25l�[24;63H4,85 All�[5;5H�[?12l�[?25h�[?25l�[24;63H5,85 All�[7;5H�[?12l�[?25h�[?25l�[24;63H6,75 All�[8;75H�[?12l�[?25h�[?25l�[24;63H7,75 All�[9;75H�[?12l�[?25h�[?25l�[24;63H8,75 All�[10;75H�[?12l�[?25h�[?25l�[24;63H9,75 All�[11;75H�[?12l�[?25h�[?25l�[24;63H10,75 All�[12;75H�[?12l�[?25h�[?25l�[24;63H9,75 All�[11;75H�[?12l�[?25h�[?25l�[24;63H8,75 All�[10;75H�[?12l�[?25h�[?25l�[24;63H7,75 All�[9;75H�[?12l�[?25h�[?25l�[24;63H6,75 All�[8;75H�[?12l�[?25h�[?25l�[24;63H5,85 All�[7;5H�[?12l�[?25h�[?25l�[24;63H6,75 All�[8;75H�[?12l�[?25h�[?25l�[24;63H7,75 All�[9;75H�[?12l�[?25h�[?25l�[24;63H8,75 All�[10;75H�[?12l�[?25h�[?25l�[24;63H9,75 All�[11;75H�[?12l�[?25h�[?25l�[24;63H10,75 All�[12;75H�[?12l�[?25h��[?25l�[24;1H�[K�[24;1H:�[?12l�[?25hq�[?25l :q�[?12l�[?25h �[?25l�[24;1H�[K�[24;1H�[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount -a �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount /dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda7 on /var type ext3 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sda3 on /pg_xlog type ext3 (rw) /dev/sda2 on /data type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remounte,��[K��[K,noatime,nodiratime / �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount,noatime,nodiratime / �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[K /dev/sda1 on / type ext3 (rw,noatime,nodiratime) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda7 on /var type ext3 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sda3 on /pg_xlog type ext3 (rw) /dev/sda2 on /data type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount,noatime,nodiratime /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /����[1P /�� �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount /��������������[K /dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda7 on /var type ext3 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sda3 on /pg_xlog type ext3 (rw) /dev/sda2 on /data type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount /data �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount /data��[K��[K��[K��[Kpgxlo��[K��[K��[K_xlog �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount -o remount /pg_xlog��������[3Pdata������������������[K /dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda7 on /var type ext3 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sda3 on /pg_xlog type ext3 (rw,noatime,nodiratime) /dev/sda2 on /data type ext3 (rw,noatime,nodiratime) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) �]0;root@prod-db:/tmp�[root@prod-db tmp]# cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/var /var ext3 defaults 1 2 LABEL=/home /home ext3 defaults 1 2 LABEL=/pg_xlog /pg_xlog ext3 noatime,nodiratime 1 2 LABEL=/data /data ext3 noatime,nodiratime 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0 �]0;root@prod-db:/tmp�[root@prod-db tmp]# umount /pg_xlog/ �]0;root@prod-db:/tmp�[root@prod-db tmp]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 4061540 1102236 2749660 29% / /dev/sda7 2030736 72088 1853828 4% /var /dev/sda6 2030736 35884 1890032 2% /home /dev/sda2 16253956 176244 15238720 2% /data tmpfs 4087664 0 4087664 0% /dev/shm �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount /pg_xlog/��[K �]0;root@prod-db:/tmp�[root@prod-db tmp]# mount /dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda7 on /var type ext3 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sda2 on /data type ext3 (rw,noatime,nodiratime) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sda3 on /pg_xlog type ext3 (rw,noatime,nodiratime) �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# mkdir -p /data/9.0/data���������[C�[C���[C�[C�[C��[C�[C�[C�[C�[C��[K��[K��[K��[K��[K��[K��[K��[K9.0/data �]0;root@prod-db:/tmp�[root@prod-db tmp]# mkdir -p /data/9.0/data��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[Kpg_xlog/9.0/pg_xlog �]0;root@prod-db:/tmp�[root@prod-db tmp]# chown postgres.postgres /pg_xlog/9.0/pg_xlog �]0;root@prod-db:/tmp�[root@prod-db tmp]# chown postgres.postgres /pg_xlog/9.0/pg_xlog���������������������[K/data/9.0/data �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# sudo -u postgres /usr/pgsql-9.0/bin/initdb �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Kls /etc/yum.repos.d/ �[00m�[00mCentOS-Base.repo�[00m �[00mCentOS-Media.repo�[00m �[00mpgdg-90-centos.repo�[00m �[m�]0;root@prod-db:/tmp�[root@prod-db tmp]# less /etc/yum.repos.d/Ce�ntOS-Base.repo �[?1049h�[?1h�= # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo �=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 exclude=postgres* #released updates [updates] �[7m/etc/yum.repos.d/CentOS-Base.repo �[27m�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kname=CentOS-$releasever - Updates :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo �:�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K=updates :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kgpgcheck=1 :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kexclude=postgres* :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K#packages used/produced in the build but not released :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K[addons] :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kname=CentOS-$releasever - Addons :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo �:�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K=addons :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/ :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kgpgcheck=1 :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[Kexclude=postgres* :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# yum list sudo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Installed Packages �[1msudo.x86_64�(B�[m 1.7.2p1-5.el5 installed Available Packages �[1m�[34msudo.x86_64�(B�[m 1.7.2p1-10.el5 base �]0;root@prod-db:/tmp�[root@prod-db tmp]# yum list postgresql90 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Installed Packages postgresql90.x86_64 9.0.4-1PGDG.rhel5 installed �]0;root@prod-db:/tmp�[root@prod-db tmp]# yum install emacs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.hmc.edu * base: centos.mirror.freedomvoice.com * extras: mirrors.netdna.com * updates: mirrors.netdna.com Excluding Packages from CentOS-5 - Addons Finished Excluding Packages from CentOS-5 - Base Finished Excluding Packages from CentOS-5 - Updates Finished Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package emacs.x86_64 0:21.4-20.el5 set to be updated --> Processing Dependency: emacs-common = 21.4-20.el5 for package: emacs --> Processing Dependency: xorg-x11-fonts-ISO8859-1-75dpi for package: emacs --> Processing Dependency: libungif.so.4()(64bit) for package: emacs --> Processing Dependency: libXpm.so.4()(64bit) for package: emacs --> Processing Dependency: libXaw3d.so.7()(64bit) for package: emacs --> Processing Dependency: libgif.so.4()(64bit) for package: emacs --> Processing Dependency: libXmu.so.6()(64bit) for package: emacs --> Running transaction check ---> Package Xaw3d.x86_64 0:1.5E-10.1 set to be updated ---> Package emacs-common.x86_64 0:21.4-20.el5 set to be updated ---> Package giflib.x86_64 0:4.1.3-7.3.3.el5 set to be updated ---> Package libXmu.x86_64 0:1.0.2-5 set to be updated ---> Package libXpm.x86_64 0:3.5.5-3 set to be updated ---> Package xorg-x11-fonts-ISO8859-1-75dpi.noarch 0:7.1-2.1.el5 set to be updated --> Processing Dependency: mkfontdir for package: xorg-x11-fonts-ISO8859-1-75dpi --> Processing Dependency: chkfontpath for package: xorg-x11-fonts-ISO8859-1-75dpi --> Running transaction check ---> Package chkfontpath.x86_64 0:1.10.1-1.1 set to be updated --> Processing Dependency: xfs for package: chkfontpath ---> Package xorg-x11-font-utils.x86_64 1:7.1-3 set to be updated --> Processing Dependency: libfontenc >= 0.99.2-2 for package: xorg-x11-font-utils --> Processing Dependency: libfontenc.so.1()(64bit) for package: xorg-x11-font-utils --> Processing Dependency: libXfont.so.1()(64bit) for package: xorg-x11-font-utils --> Running transaction check ---> Package libXfont.x86_64 0:1.2.2-1.0.3.el5_1 set to be updated ---> Package libfontenc.x86_64 0:1.0.2-2.2.el5 set to be updated ---> Package xorg-x11-xfs.x86_64 1:1.0.2-5.el5_6.1 set to be updated --> Processing Dependency: ttmkfdir for package: xorg-x11-xfs --> Processing Dependency: libFS.so.6()(64bit) for package: xorg-x11-xfs --> Running transaction check ---> Package libFS.x86_64 0:1.0.0-3.1 set to be updated ---> Package ttmkfdir.x86_64 0:3.0.9-23.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: emacs x86_64 21.4-20.el5 base 1.7 M Installing for dependencies: Xaw3d x86_64 1.5E-10.1 base 155 k chkfontpath x86_64 1.10.1-1.1 base 15 k emacs-common x86_64 21.4-20.el5 base 11 M giflib x86_64 4.1.3-7.3.3.el5 updates 39 k libFS x86_64 1.0.0-3.1 base 30 k libXfont x86_64 1.2.2-1.0.3.el5_1 base 246 k libXmu x86_64 1.0.2-5 base 63 k libXpm x86_64 3.5.5-3 base 44 k libfontenc x86_64 1.0.2-2.2.el5 base 19 k ttmkfdir x86_64 3.0.9-23.el5 base 46 k xorg-x11-font-utils x86_64 1:7.1-3 updates 78 k xorg-x11-fonts-ISO8859-1-75dpi noarch 7.1-2.1.el5 base 932 k xorg-x11-xfs x86_64 1:1.0.2-5.el5_6.1 updates 73 k Transaction Summary ================================================================================ Install 14 Package(s) Upgrade 0 Package(s) Total download size: 14 M Is this ok [y/N]: n Exiting on user Command Complete! �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# �]0;root@prod-db:/tmp�[root@prod-db tmp]# sudo -u postgres /usr/pgsql-9.0/bin/initdb --locale en_US.UT F8 --encoding UTF8 --pgdata /data/9.0/data/��[K --xlogdir /pg_xlog/� 9.0/ lost+found/ [root@prod-db tmp]# sudo -u postgres /usr/pgsql-9.0/bin/initdb --locale en_US.UTF F8 --encoding UTF8 --pgdata /data/9.0/data --xlogdir /pg_xlog/9.0/pg_xlog/��[K The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF8. The default text search configuration will be set to "english". fixing permissions on existing directory /data/9.0/data ... ok fixing permissions on existing directory /pg_xlog/9.0/pg_xlog ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 32MB creating configuration files ... ok creating template1 database in /data/9.0/data/base/1 ... ok initializing pg_authid ... ok initializing dependencies ... ok creating system views ... ok loading system objects' descriptions ... ok creating conversions ... ok creating dictionaries ... ok setting privileges on built-in objects ... ok creating information schema ... ok loading PL/pgSQL server-side language ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: /usr/pgsql-9.0/bin/postgres -D /data/9.0/data or /usr/pgsql-9.0/bin/pg_ctl -D /data/9.0/data -l logfile start �]0;root@prod-db:/tmp�[root@prod-db tmp]# vim /etc/sysconfig/pgsql/postgresql-9.0 �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/etc/sysconfig/pgsql/postgresql-9.0" [New File]�[>c�[2;1H�[1m�[34m~ �[3;1H~ �[4;1H~ �[5;1H~ �[6;1H~ �[7;1H~ �[8;1H~ �[9;1H~ �[10;1H~ �[11;1H~ �[12;1H~ �[13;1H~ �[14;1H~ �[15;1H~ �[16;1H~ �[17;1H~ �[18;1H~ �[19;1H~ �[20;1H~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H0,0-1 All�[1;1H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;13H�[K�[24;63H0,1 All�[1;1H�[?12l�[?25h�[?25lP�[24;63H1,2 All�[1;2H�[?12l�[?25h�[?25lG�[24;63H1,3 All�[1;3H�[?12l�[?25h�[?25lD�[24;63H1,4 All�[1;4H�[?12l�[?25h�[?25lA�[24;63H1,5 All�[1;5H�[?12l�[?25h�[?25lT�[24;63H1,6 All�[1;6H�[?12l�[?25h�[?25lA�[24;63H1,7 All�[1;7H�[?12l�[?25h�[?25l=�[24;63H1,8 All�[1;8H�[?12l�[?25h�[?25l/�[24;63H1,9 All�[1;9H�[?12l�[?25h�[?25ld�[24;63H1,10 All�[1;10H�[?12l�[?25h�[?25la�[24;63H1,11 All�[1;11H�[?12l�[?25h�[?25lt�[24;63H1,12 All�[1;12H�[?12l�[?25h�[?25la�[24;63H1,13 All�[1;13H�[?12l�[?25h�[?25l/�[24;63H1,14 All�[1;14H�[?12l�[?25h�[?25l9�[24;63H1,15 All�[1;15H�[?12l�[?25h�[?25l.�[24;63H1,16 All�[1;16H�[?12l�[?25h�[?25l0�[24;63H1,17 All�[1;17H�[?12l�[?25h�[?25l/�[24;63H1,18 All�[1;18H�[?12l�[?25h�[?25ld�[24;63H1,19 All�[1;19H�[?12l�[?25h�[?25la�[24;63H1,20 All�[1;20H�[?12l�[?25h�[?25lt�[24;63H1,21 All�[1;21H�[?12l�[?25h�[?25la�[24;63H1,22 All�[1;22H�[?12l�[?25h�[24;1H�[K�[1;21H�[?25l�[24;63H1,21 All�[1;21H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"/etc/sysconfig/pgsql/postgresql-9.0" "/etc/sysconfig/pgsql/postgresql-9.0" [New] 1L, 22C written �[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/tmp�[root@prod-db tmp]# /etc/init.d/po�stgresql-9.0 start Starting postgresql-9.0 service: �[60G[�[0;32m OK �[0;39m] �]0;root@prod-db:/tmp�[root@prod-db tmp]# ps -ef|grep postgres postgres 5172 1 6 11:14 ? 00:00:00 /usr/pgsql-9.0/bin/postmaster -p 5432 -D /data/9.0/data postgres 5174 5172 0 11:14 ? 00:00:00 postgres: logger process postgres 5176 5172 0 11:14 ? 00:00:00 postgres: writer process postgres 5177 5172 0 11:14 ? 00:00:00 postgres: wal writer process postgres 5178 5172 0 11:14 ? 00:00:00 postgres: autovacuum launcher process postgres 5179 5172 0 11:14 ? 00:00:00 postgres: stats collector process root 5184 4387 0 11:14 pts/1 00:00:00 grep postgres �]0;root@prod-db:/tmp�[root@prod-db tmp]# su ��[Kdo -u postgrtes ��[K��[K��[K��[Kes psql -l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -----------+----------+----------+------------+------------+-------------------- --- postgres | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es template1 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es (3 rows) �]0;root@prod-db:/tmp�[root@prod-db tmp]# sudo -u postgres psql -l��[K-lkist��[K��[K��[K��[Kist List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -----------+----------+----------+------------+------------+-------------------- --- postgres | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es template1 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es (3 rows) �]0;root@prod-db:/tmp�[root@prod-db tmp]# vim /data/9.0/data/po�stgresql.conf �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[1@s�[1@u�[1@d�[1@o�[1@ �[1@-�[1@u�[1@ �[1@p�[1@o�[1@s�[1@t�[1@g�[1@r�[1@e�[1@s�[1@ �]0;root@prod-db:/tmp�[root@prod-db tmp]# rpm -ql postgresql-server|grep conf �]0;root@prod-db:/tmp�[root@prod-db tmp]# rpm -ql postgresql-server|grep conf��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K��[K|grep conf �]0;root@prod-db:/tmp�[root@prod-db tmp]# rpm -ql postgresql|grep conf�����������[7@-server�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C������������������[1@9�[1@0 /etc/sysconfig/pgsql /usr/pgsql-9.0/share/pg_hba.conf.sample /usr/pgsql-9.0/share/pg_ident.conf.sample /usr/pgsql-9.0/share/pg_service.conf.sample /usr/pgsql-9.0/share/postgresql.conf.sample /usr/pgsql-9.0/share/recovery.conf.sample �]0;root@prod-db:/tmp�[root@prod-db tmp]# diff /usr/pgsql-9.0/share/postg�resql.conf.sample /data/9.0/d ata/po�stgresql.conf 64c64 < #max_connections = 100 # (change requires restart) --- > max_connections = 100 # (change requires restart) 109c109 < #shared_buffers = 32MB # min 128kB --- > shared_buffers = 32MB # min 128kB 461c461 < #datestyle = 'iso, mdy' --- > datestyle = 'iso, mdy' 477c477 < #lc_messages = 'C' # locale for system error message --- > lc_messages = 'en_US.UTF8' # locale for system error message 479,481c479,481 < #lc_monetary = 'C' # locale for monetary formatting < #lc_numeric = 'C' # locale for number formatting < #lc_time = 'C' # locale for time formatting --- > lc_monetary = 'en_US.UTF8' # locale for monetary formatting > lc_numeric = 'en_US.UTF8' # locale for number formatting > lc_time = 'en_US.UTF8' # locale for time formatting 484c484 < #default_text_search_config = 'pg_catalog.simple' --- > default_text_search_config = 'pg_catalog.english' �]0;root@prod-db:/tmp�[root@prod-db tmp]# cd /data/9.0/data/ �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# cp po�stgresql.conf po�stgresql.conf ��[K.orig -p �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# cp postgresql.conf postgresql.conf.orig -p������������������������[10P�[1@p�[1@g�[1@_�[1@p�[1@g�[1@a��[1P��[1P��[1P�[1@h�[1@b�[1@a�����������������������[10P�[1@p�[1@g�[1@_�[1@h�[1@b�[1@a �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls -l �[00mtotal 180 drwx------ 5 postgres postgres 4096 Jul 7 11:12 �[00;34mbase�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:15 �[00;34mglobal�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_clog�[00m -rw------- 1 postgres postgres 3939 Jul 7 11:12 �[00mpg_hba.conf�[00m -rw------- 1 postgres postgres 3939 Jul 7 11:12 �[00mpg_hba.conf.orig�[00m -rw------- 1 postgres postgres 1636 Jul 7 11:12 �[00mpg_ident.conf�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:14 �[00;34mpg_log�[00m drwx------ 4 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_multixact�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:14 �[00;34mpg_notify�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:25 �[00;34mpg_stat_tmp�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_subtrans�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_tblspc�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_twophase�[00m -rw------- 1 postgres postgres 4 Jul 7 11:12 �[00mPG_VERSION�[00m lrwxrwxrwx 1 postgres postgres 20 Jul 7 11:12 �[00;36mpg_xlog�[00m -> �[00;34m/pg_xlog/9.0/pg_xlog�[00m -rw------- 1 postgres postgres 17948 Jul 7 11:12 �[00mpostgresql.conf�[00m -rw------- 1 postgres postgres 17948 Jul 7 11:12 �[00mpostgresql.conf.orig�[00m -rw------- 1 postgres postgres 62 Jul 7 11:14 �[00mpostmaster.opts�[00m -rw------- 1 postgres postgres 40 Jul 7 11:14 �[00mpostmaster.pid�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# sudo -u postgres vim /usr��[K��[K��[Kdata/9.0/data/po�stg�resql.conf �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/data/9.0/data/postgresql.conf" "/data/9.0/data/postgresql.conf" 528L, 17948C�[>c�[1;1H�[34m# ----------------------------- # PostgreSQL configuration file # ----------------------------- # # This file consists of lines of the form: # # name = value # # (The "=" is optional.) Whitespace may be used. Comments are introduced with # "#" anywhere on a line. The complete list of parameter names and allowed # values can be found in the PostgreSQL documentation. # # The commented-out settings shown in this file represent the default values. # Re-commenting a setting is NOT sufficient to revert it to the default value; # you need to reload the server. # # This file is read on server startup and when the server receives a SIGHUP # signal. If you edit the file on a running system, you have to SIGHUP the # server for the changes to take effect, or use "pg_ctl reload". Some # parameters, which are marked below, require a server shutdown and restart to # take effect. # # Any parameter can also be given as a command-line option to the server, e.g.,�[m�[24;63H1,1 Top�[1;1H�[?12l�[?25h�[?25l�[24;1H�[K�[24;1H/�[?12l�[?25hl�[?25l /l�[?12l�[?25hi�[?25l /li�[?12l�[?25hs�[?25l /lis�[?12l�[?25ht�[?25l /list�[?12l�[?25he�[?25l /liste�[?12l�[?25hn�[?25l /listen�[?12l�[?25h �[?25l/listen �[27m�[m�[H�[2J�[1;1H�[34m# If external_pid_file is not explicitly set, no extra PID file is written. #external_pid_file = '(none)' # write an extra PID file�[3;41H# (change requires restart) #------------------------------------------------------------------------------ # CONNECTIONS AND AUTHENTICATION #------------------------------------------------------------------------------ # - Connection Settings - #�[m�[30m�[43mlisten�[m�[34m_addresses = 'localhost' # what IP address(es) to �[m�[30m�[43mlisten�[m�[34m on;�[13;41H# comma-separated list of addresses;�[14;41H# defaults to 'localhost', '*' = all�[15;41H# (change requires restart) #port = 5432 # (change requires restart)�[m max_connections = 100�[19C�[34m# (change requires restart) # Note: Increasing max_connections costs ~400 bytes of shared memory per # connection slot, plus lock space (see max_locks_per_transaction). #superuser_reserved_connections = 3 # (change requires restart) #unix_socket_directory = '' # (change requires restart) #unix_socket_group = '' # (change requires restart) #unix_socket_permissions = 0777 # begin with 0 to use octal notation�[m�[24;63H59,2 9%�[12;2H�[?12l�[?25h�[?25l�[24;63H59,1 9%�[12;1H�[?12l�[?25h�[?25l�[30m�[43mlisten�[m_addresses = �[31m'localhost'�[m �[?12l�[?25h�[?25l�[24;63H59,18 9%�[12;18H�[?12l�[?25h�[?25l�[24;63H59,20 9%�[12;20H�[?12l�[?25h�[?25l�[24;63H59,21 9%�[12;21H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H59,21 9%�[12;21H�[31m'�[m �[34m# what IP address(es) to �[m�[30m�[43mlisten�[m�[34m on;�[m�[12;68H�[K�[12;21H�[?12l�[?25h�[?25l�[31m*'�[m�[24;63H59,22 9%�[12;22H�[?12l�[?25h�[24;1H�[K�[12;21H�[?25l�[24;63H59,21 9%�[12;21H�[?12l�[?25h�[?25l�[24;63H60,3-24 9%�[13;24H�[?12l�[?25h�[?25l�[24;63H61,3-24 9%�[14;24H�[?12l�[?25h�[?25l�[24;63H62,3-24 9%�[15;24H�[?12l�[?25h�[?25l�[24;63H63,14-24 9%�[16;24H�[?12l�[?25h�[?25l�[24;63H63,1 9%�[16;1H�[?12l�[?25h�[?25lport = 5432 �[?12l�[?25h��[?25l�[24;63H64,1 9%�[17;1H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hp�[?25l /p�[?12l�[?25ha�[?25l /pa�[?12l�[?25hs�[?25l /pas�[?12l�[?25hs�[?25l /pass�[?12l�[?25hw�[?25l /passw�[?12l�[?25ho�[?25l /passwo�[?12l�[?25hr�[?25l /passwor�[?12l�[?25hd�[?25l /password�[?12l�[?25h �[?25l/password �[27m�[m�[H�[2J�[1;41H�[34m# (change requires restart) #bonjour_name = '' # defaults to the computer name�[3;41H# (change requires restart) # - Security and Authentication - #authentication_timeout = 1min # 1s-600s #ssl = off # (change requires restart) #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers�[10;41H# (change requires restart) #ssl_renegotiation_limit = 512MB # amount of data between renegotiations #�[m�[30m�[43mpassword�[m�[34m_encryption = on #db_user_namespace = off # Kerberos and GSSAPI #krb_server_keyfile = '' #krb_srvname = 'postgres' # (Kerberos only) #krb_caseins_users = off # - TCP Keepalives - # see "man 7 tcp" for details #tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;�[m�[24;63H84,2 14%�[12;2H�[?12l�[?25h�[?25l�[24;63H84,1 14%�[12;1H�[?12l�[?25h�[?25l�[30m�[43mpassword�[m_encryption = on�[12;25H�[K�[12;1H�[?12l�[?25h��[?25l�[24;63H85,1 14%�[13;1H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hs�[?25l /s�[?12l�[?25hh�[?25l /sh�[?12l�[?25ha�[?25l /sha�[?12l�[?25hr�[?25l /shar�[?12l�[?25he�[?25l /share�[?12l�[?25hd�[?25l /shared�[?12l�[?25h_�[?25l /shared_�[?12l�[?25hb�[?25l /shared_b�[?12l�[?25hu�[?25l /shared_bu�[?12l�[?25hf�[?25l /shared_buf�[?12l�[?25hf�[?25l /shared_buff�[?12l�[?25h �[?25l/shared_buff �[27m�[m�[H�[2J�[1;41H�[34m# 0 selects the system default #tcp_keepalives_count = 0 # TCP_KEEPCNT;�[3;41H# 0 selects the system default #------------------------------------------------------------------------------ # RESOURCE USAGE (except WAL) #------------------------------------------------------------------------------ # - Memory -�[m �[30m�[43mshared_buff�[mers = 32MB�[19C�[34m# min 128kB�[13;41H# (change requires restart) #temp_buffers = 8MB # min 800kB #max_prepared_transactions = 0 # zero disables the feature�[16;41H# (change requires restart) # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory # per transaction slot, plus lock space (see max_locks_per_transaction). # It is not advisable to set max_prepared_transactions nonzero unless you # actively intend to use prepared transactions. #work_mem = 1MB # min 64kB #maintenance_work_mem = 16MB # min 1MB #max_stack_depth = 2MB # min 100kB�[m�[24;63H109,1 19%�[12;1H�[?12l�[?25h�[?25l�[24;63H109,16 19%�[12;16H�[?12l�[?25h�[?25l�[24;63H109,18 19%�[12;18H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H109,18 19%�[12;18H�[K�[12;18H�[?12l�[?25h�[?25l2�[24;63H109,19 19%�[12;19H�[?12l�[?25h�[?25lG�[24;63H109,20 19%�[12;20H�[?12l�[?25h�[?25lB�[24;63H109,21 19%�[12;21H�[?12l�[?25h�[?25l�[24;63H109,22 19%�[12;22H�[?12l�[?25h�[?25l�[34m#�[m�[24;63H109,23 19%�[12;23H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,24 19%�[12;24H�[?12l�[?25h�[?25l�[34mP�[m�[24;63H109,25 19%�[12;25H�[?12l�[?25h�[?25l�[34mR�[m�[24;63H109,26 19%�[12;26H�[?12l�[?25h�[?25l�[34mO�[m�[24;63H109,27 19%�[12;27H�[?12l�[?25h�[?25l�[34mD�[m�[24;63H109,28 19%�[12;28H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,29 19%�[12;29H�[?12l�[?25h�[?25l�[34m-�[m�[24;63H109,30 19%�[12;30H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,31 19%�[12;31H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H109,32 19%�[12;32H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H109,33 19%�[12;33H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H109,34 19%�[12;34H�[?12l�[?25h�[?25l�[34mu�[m�[24;63H109,35 19%�[12;35H�[?12l�[?25h�[?25l�[34mm�[m�[24;63H109,36 19%�[12;36H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H109,37 19%�[12;37H�[?12l�[?25h�[?25l�[34mn�[m�[24;63H109,38 19%�[12;38H�[?12l�[?25h�[?25l�[34mg�[m�[24;63H109,39 19%�[12;39H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,40 19%�[12;40H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H109,41 19%�[12;41H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H109,42 19%�[12;42H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H109,43 19%�[12;43H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H109,44 19%�[12;44H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H109,45 19%�[12;45H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,46 19%�[12;46H�[?12l�[?25h�[?25l�[34mm�[m�[24;63H109,47 19%�[12;47H�[?12l�[?25h�[?25l�[34me�[m�[24;63H109,48 19%�[12;48H�[?12l�[?25h�[?25l�[34mm�[m�[24;63H109,49 19%�[12;49H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H109,50 19%�[12;50H�[?12l�[?25h�[?25l�[34mr�[m�[24;63H109,51 19%�[12;51H�[?12l�[?25h�[?25l�[34my�[m�[24;63H109,52 19%�[12;52H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,53 19%�[12;53H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H109,54 19%�[12;54H�[?12l�[?25h�[?25l�[34mf�[m�[24;63H109,55 19%�[12;55H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,56 19%�[12;56H�[?12l�[?25h�[?25l�[34mD�[m�[24;63H109,57 19%�[12;57H�[?12l�[?25h�[?25l�[12;56H�[K�[24;63H109,56 19%�[12;56H�[?12l�[?25h�[?25l�[34mP�[m�[24;63H109,57 19%�[12;57H�[?12l�[?25h�[?25l�[34mR�[m�[24;63H109,58 19%�[12;58H�[?12l�[?25h�[?25l�[34mO�[m�[24;63H109,59 19%�[12;59H�[?12l�[?25h�[?25l�[34mD�[m�[24;63H109,60 19%�[12;60H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,61 19%�[12;61H�[?12l�[?25h�[?25l�[34mD�[m�[24;63H109,62 19%�[12;62H�[?12l�[?25h�[?25l�[34mB�[m�[24;63H109,63 19%�[12;63H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,64 19%�[12;64H�[?12l�[?25h�[?25l�[34mV�[m�[24;63H109,65 19%�[12;65H�[?12l�[?25h�[?25l�[34mM�[m�[24;63H109,66 19%�[12;66H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,67 19%�[12;67H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H109,68 19%�[12;68H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H109,69 19%�[12;69H�[?12l�[?25h�[?25l�[34m �[m�[24;63H109,70 19%�[12;70H�[?12l�[?25h�[?25l�[34m8�[m�[24;63H109,71 19%�[12;71H�[?12l�[?25h�[?25l�[34mG�[m�[24;63H109,72 19%�[12;72H�[?12l�[?25h�[?25l�[34mB�[m�[24;63H109,73 19%�[12;73H�[?12l�[?25h�[24;1H�[K�[12;72H�[?25l�[24;63H109,72 19%�[12;72H�[?12l�[?25h�[?25l�[13;43H�[34m�[46m(�[23C)�[m�[24;63H110,32-67 19%�[13;67H�[?12l�[?25h�[?25l�[13;43H�[34m(�[23C)�[m�[24;63H111,33-51 19%�[14;51H�[?12l�[?25h�[?25l�[24;63H111,1 19%�[14;1H�[?12l�[?25h�[?25ltemp_buffers = 8MB �[?12l�[?25h�[?25l�[24;63H111,14 19%�[14;14H�[?12l�[?25h�[?25l�[24;63H111,16 19%�[14;16H�[?12l�[?25h�[?25lMB ����[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H111,16 19%�[14;16H�[?12l�[?25h�[?25l3MB�[24;63H111,17 19%�[14;17H�[?12l�[?25h�[?25l2MB�[24;63H111,18 19%�[14;18H�[?12l�[?25h�[24;1H�[K�[14;17H�[?25l�[24;63H111,17 19%�[14;17H�[?12l�[?25h��[?25l�[24;63H110,3-24 19%�[13;24H�[?12l�[?25h�[?25l�[24;63H109,17 19%�[12;17H�[?12l�[?25h�[?25l�[24;63H109,72 19%�[12;72H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H110,1 19%�[13;23r�[13;1H�[L�[1;24r�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H110,1 19%�[13;1H�[?12l�[?25h�[?25l�[24;63H110,2 19%�[13;2H�[?12l�[?25h�[?25l�[24;63H110,3 19%�[13;3H�[?12l�[?25h�[?25l�[24;63H110,4 19%�[13;4H�[?12l�[?25h�[?25l�[24;63H110,5 19%�[13;5H�[?12l�[?25h�[?25l�[24;63H110,6 19%�[13;6H�[?12l�[?25h�[?25l�[24;63H110,7 19%�[13;7H�[?12l�[?25h�[?25l�[24;63H110,8 19%�[13;8H�[?12l�[?25h�[?25l�[24;63H110,9 19%�[13;9H�[?12l�[?25h�[?25l�[24;63H110,10 19%�[13;10H�[?12l�[?25h�[?25l�[24;63H110,11 19%�[13;11H�[?12l�[?25h�[?25l�[24;63H110,12 19%�[13;12H�[?12l�[?25h�[?25l�[24;63H110,13 19%�[13;13H�[?12l�[?25h�[?25l�[24;63H110,14 19%�[13;14H�[?12l�[?25h�[?25l�[24;63H110,15 19%�[13;15H�[?12l�[?25h�[?25l�[24;63H110,16 19%�[13;16H�[?12l�[?25h�[?25l�[24;63H110,17 19%�[13;17H�[?12l�[?25h�[?25l�[24;63H110,18 19%�[13;18H�[?12l�[?25h�[?25l�[24;63H110,19 19%�[13;19H�[?12l�[?25h�[?25l�[24;63H110,20 19%�[13;20H�[?12l�[?25h�[?25l�[24;63H110,21 19%�[13;21H�[?12l�[?25h�[?25l�[24;63H110,22 19%�[13;22H�[?12l�[?25h�[?25l�[34m#�[m�[24;63H110,23 19%�[13;23H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,24 19%�[13;24H�[?12l�[?25h�[?25l�[34mI�[m�[24;63H110,25 19%�[13;25H�[?12l�[?25h�[?25l�[34m.�[m�[24;63H110,26 19%�[13;26H�[?12l�[?25h�[?25l�[34mE�[m�[24;63H110,27 19%�[13;27H�[?12l�[?25h�[?25l�[34m.�[m�[24;63H110,28 19%�[13;28H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,29 19%�[13;29H�[?12l�[?25h�[?25l�[34m2�[m�[24;63H110,30 19%�[13;30H�[?12l�[?25h�[?25l�[34m5�[m�[24;63H110,31 19%�[13;31H�[?12l�[?25h�[?25l�[34m%�[m�[24;63H110,32 19%�[13;32H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,33 19%�[13;33H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H110,34 19%�[13;34H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,35 19%�[13;35H�[?12l�[?25h�[?25l�[13;34H�[K�[24;63H110,34 19%�[13;34H�[?12l�[?25h�[?25l�[34mf�[m�[24;63H110,35 19%�[13;35H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,36 19%�[13;36H�[?12l�[?25h�[?25l�[34mR�[m�[24;63H110,37 19%�[13;37H�[?12l�[?25h�[?25l�[34mA�[m�[24;63H110,38 19%�[13;38H�[?12l�[?25h�[?25l�[34mM�[m�[24;63H110,39 19%�[13;39H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,40 19%�[13;40H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H110,41 19%�[13;41H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H110,42 19%�[13;42H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,43 19%�[13;43H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H110,44 19%�[13;44H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,45 19%�[13;45H�[?12l�[?25h�[?25l�[34mg�[m�[24;63H110,46 19%�[13;46H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H110,47 19%�[13;47H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H110,48 19%�[13;48H�[?12l�[?25h�[?25l�[34md�[m�[24;63H110,49 19%�[13;49H�[?12l�[?25h�[?25l�[34m �[m�[24;63H110,50 19%�[13;50H�[?12l�[?25h�[?25l�[34mb�[m�[24;63H110,51 19%�[13;51H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H110,52 19%�[13;52H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H110,53 19%�[13;53H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H110,54 19%�[13;54H�[?12l�[?25h�[?25l�[34mp�[m�[24;63H110,55 19%�[13;55H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H110,56 19%�[13;56H�[?12l�[?25h�[?25l�[34mr�[m�[24;63H110,57 19%�[13;57H�[?12l�[?25h�[?25l�[34mk�[m�[24;63H110,58 19%�[13;58H�[?12l�[?25h�[24;1H�[K�[13;57H�[?25l�[24;63H110,57 19%�[13;57H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25h �[?25l"postgresql.conf" "postgresql.conf" 529L, 18032C written�[24C110,57 19% "postgresql.conf" 529L, 18032C written�[24;63H�[K�[24;63H110,57 19%�[13;57H�[?12l�[?25h�[?25l�[24;63H111,22-57 19%�[14;57H�[?12l�[?25h�[?25l�[24;63H112,33-51 19%�[15;51H�[?12l�[?25h�[?25l�[24;63H112,1 19%�[15;1H�[?12l�[?25h�[?25l�[24;1H�[K�[24;1H/�[?12l�[?25hw�[?25l /w�[?12l�[?25ho�[?25l /wo�[?12l�[?25hr�[?25l /wor�[?12l�[?25hk�[?25l /work�[?12l�[?25h_�[?25l /work_�[?12l�[?25hm�[?25l /work_m�[?12l�[?25he�[?25l /work_me�[?12l�[?25hm�[?25l /work_mem�[?12l�[?25h �[?25l/work_mem �[12;1Hshared_buff�[22;2H�[30m�[43mwork_mem�[23;14Hwork_mem�[m�[24;63H119,2 19%�[22;2H�[?12l�[?25h�[?25l�[24;63H119,1 19%�[22;1H�[?12l�[?25h�[?25l�[30m�[43mwork_mem�[m = 1MB �[?12l�[?25h�[?25l�[24;63H119,10 19%�[22;10H�[?12l�[?25h�[?25l�[24;63H119,12 19%�[22;12H�[?12l�[?25h�[?25lMB ����[?12l�[?25h�[?25l �[1m-- INSERT --�[m�[24;63H�[K�[24;63H119,12 19%�[22;12H�[?12l�[?25h�[?25l3MB�[24;63H119,13 19%�[22;13H�[?12l�[?25h�[?25l2MB�[24;63H119,14 19%�[22;14H�[?12l�[?25h�[24;1H�[K�[22;13H�[?25l�[24;63H119,13 19%�[22;13H�[?12l�[?25h�[?25l�[24;63H120,13 19%�[23;13H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#max_stack_depth = 2MB # min 100kB�[m�[24;63H�[K�[24;63H121,13 19%�[23;13H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H122,0-1 19%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# - Kernel Resource Usage -�[m�[24;63H�[K�[24;63H123,13 19%�[23;13H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H124,0-1 19%�[23;1H�[?12l�[?25h�[?25l�[24;63H123,13 19%�[22;13H�[?12l�[?25h�[?25l�[24;63H122,0-1 19%�[21;1H�[?12l�[?25h�[?25l�[24;63H121,13 19%�[20;13H�[?12l�[?25h�[?25l�[24;63H120,13 19%�[19;13H�[?12l�[?25h�[?25l�[24;63H120,1 19%�[19;1H�[?12l�[?25h�[?25lmaintenance_�[30m�[43mwork_mem�[m = 16MB �[?12l�[?25h�[?25l�[24;63H120,22 19%�[19;22H�[?12l�[?25h�[?25l�[24;63H120,24 19%�[19;24H�[?12l�[?25h�[?25l6MB �����[?12l�[?25h�[?25lMB ����[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H120,24 19%�[19;24H�[?12l�[?25h�[?25l1MB�[24;63H120,25 19%�[19;25H�[?12l�[?25h�[?25l2MB�[24;63H120,26 19%�[19;26H�[?12l�[?25h�[?25l8MB�[24;63H120,27 19%�[19;27H�[?12l�[?25h�[24;1H�[K�[19;26H�[?25l�[24;63H120,26 19%�[19;26H�[?12l�[?25h�[?25l�[24;63H121,24-32 19%�[20;32H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hw�[?25l /w�[?12l�[?25ha�[?25l /wa�[?12l�[?25hl�[?25l /wal�[?12l�[?25h_�[?25l /wal_�[?12l�[?25hb�[?25l /wal_b�[?12l�[?25hu�[?25l /wal_bu�[?12l�[?25hf�[?25l /wal_buf�[?12l�[?25hf�[?25l /wal_buff�[?12l�[?25he�[?25l /wal_buffe�[?12l�[?25hr�[?25l /wal_buffer�[?12l�[?25h �[?25l/wal_buffer �[27m�[m�[H�[2J�[1;41H�[34m# (change requires restart) #fsync = on # turns forced synchronization on or off�[3;1H#synchronous_commit = on # immediate fsync at commit #wal_sync_method = fsync # the default is the first option �[5;41H# supported by the operating system:�[6;41H# open_datasync�[7;41H# fdatasync (default on Linux)�[8;41H# fsync�[9;41H# fsync_writethrough�[10;41H# open_sync #full_page_writes = on # recover from partial page writes #�[m�[30m�[43mwal_buffer�[m�[34ms = 64kB # min 32kB�[13;41H# (change requires restart) #wal_writer_delay = 200ms # 1-10000 milliseconds #commit_delay = 0 # range 0-100000, in microseconds #commit_siblings = 5 # range 1-1000 # - Checkpoints - #checkpoint_segments = 3 # in logfile segments, min 1, 16MB each #checkpoint_timeout = 5min # range 30s-1h #checkpoint_completion_target = 0.5 # checkpoint target duration, 0.0 - 1.0�[m�[24;63H166,2 30%�[12;2H�[?12l�[?25h�[?25l�[24;63H166,1 30%�[12;1H�[?12l�[?25h�[?25l�[30m�[43mwal_buffer�[ms = 64kB �[?12l�[?25h�[?25l�[24;63H166,13 30%�[12;13H�[?12l�[?25h�[?25l�[24;63H166,15 30%�[12;15H�[?12l�[?25h�[?25l4kB �����[?12l�[?25h�[?25lkB ����[?12l�[?25h�[?25lB �[16C�[34m# min 32kB�[m�[12;43H�[K�[12;15H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H166,15 30%�[12;15H�[?12l�[?25h�[?25l1B�[16C �[34m# min 32kB�[m�[24;63H166,16 30%�[12;16H�[?12l�[?25h�[?25l6B�[24;63H166,17 30%�[12;17H�[?12l�[?25h�[?25lMB�[24;63H166,18 30%�[12;18H�[?12l�[?25h�[24;1H�[K�[12;17H�[?25l�[24;63H166,17 30%�[12;17H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hc�[?25l /c�[?12l�[?25hh�[?25l /ch�[?12l�[?25he�[?25l /che�[?12l�[?25hc�[?25l /chec�[?12l�[?25hk�[?25l /check�[?12l�[?25hp�[?25l /checkp�[?12l�[?25ho�[?25l /checkpo�[?12l�[?25hi�[?25l /checkpoi�[?12l�[?25hn�[?25l /checkpoin�[?12l�[?25ht�[?25l /checkpoint�[?12l�[?25h �[?25l/checkpoint �[12;1Hwal_buffer�[21;2H�[30m�[43mcheckpoint�[22;2Hcheckpoint�[23;2Hcheckpoint�[31Ccheckpoint�[m�[24;63H175,2 30%�[21;2H�[?12l�[?25h�[?25l�[24;63H175,1 30%�[21;1H�[?12l�[?25h�[?25l�[30m�[43mcheckpoint�[m_segments = 3 �[34m# in logfile segments, min 1, 16MB each�[m�[21;72H�[K�[21;1H�[?12l�[?25h�[?25l�[24;63H175,21 30%�[21;21H�[?12l�[?25h�[?25l�[24;63H175,23 30%�[21;23H�[?12l�[?25h�[?25l �[1m-- INSERT --�[m�[24;63H�[K�[24;63H175,24 30%�[21;24H�[?12l�[?25h�[?25l2�[8C �[34m# in logfile segments, min 1, 16MB each�[m�[24;63H175,25 30%�[21;25H�[?12l�[?25h�[24;1H�[K�[21;24H�[?25l�[24;63H175,24 30%�[21;24H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hs�[?25l /s�[?12l�[?25he�[?25l /se�[?12l�[?25hq�[?25l /seq�[?12l�[?25h �[?25l/seq �[27m�[m�[H�[2J�[1;1H�[34m#------------------------------------------------------------------------------ # - Planner Method Configuration - #enable_bitmapscan = on #enable_hashagg = on #enable_hashjoin = on #enable_indexscan = on #enable_material = on #enable_mergejoin = on #enable_nestloop = on #enable_�[m�[30m�[43mseq�[m�[34mscan = on #enable_sort = on #enable_tidscan = on # - Planner Cost Constants - #�[m�[30m�[43mseq�[m�[34m_page_cost = 1.0 # measured on an arbitrary scale #random_page_cost = 4.0 # same scale as above #cpu_tuple_cost = 0.01 # same scale as above #cpu_index_tuple_cost = 0.005 # same scale as above #cpu_operator_cost = 0.0025 # same scale as above #effective_cache_size = 128MB�[m�[24;63H221,9 41%�[12;9H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25he�[?25l /e�[?12l�[?25hf�[?25l /ef�[?12l�[?25hf�[?25l /eff�[?12l�[?25he�[?25l /effe�[?12l�[?25hc�[?25l /effec�[?12l�[?25ht�[?25l /effect�[?12l�[?25hi�[?25l /effecti�[?12l�[?25hv�[?25l /effectiv�[?12l�[?25he�[?25l /effective�[?12l�[?25h �[?25l/effective �[12;9H�[34mseq�[18;2Hseq�[m�[23;2H�[30m�[43meffective�[m�[24;63H232,2 41%�[23;2H�[?12l�[?25h�[?25l�[24;63H232,1 41%�[23;1H�[?12l�[?25h�[?25l�[30m�[43meffective�[m_cache_size = 128MB�[23;29H�[K�[23;1H�[?12l�[?25h�[?25l�[24;63H232,22 41%�[23;22H�[?12l�[?25h�[?25l�[24;63H232,24 41%�[23;24H�[?12l�[?25h�[?25l �[1m-- INSERT --�[m�[24;63H�[K�[24;63H232,24 41%�[23;24H�[K�[23;24H�[?12l�[?25h�[?25l7�[24;63H232,25 41%�[23;25H�[?12l�[?25h�[?25lG�[24;63H232,26 41%�[23;26H�[?12l�[?25h�[?25lB�[24;63H232,27 41%�[23;27H�[?12l�[?25h�[?25l�[24;63H232,28 41%�[23;28H�[?12l�[?25h�[?25l�[34m#�[m�[24;63H232,29 41%�[23;29H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,30 41%�[23;30H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H232,31 41%�[23;31H�[?12l�[?25h�[?25l�[34mh�[m�[24;63H232,32 41%�[23;32H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H232,33 41%�[23;33H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H232,34 41%�[23;34H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,35 41%�[23;35H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H232,36 41%�[23;36H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H232,37 41%�[23;37H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,38 41%�[23;38H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H232,39 41%�[23;39H�[?12l�[?25h�[?25l�[34mh�[m�[24;63H232,40 41%�[23;40H�[?12l�[?25h�[?25l�[34me�[m�[24;63H232,41 41%�[23;41H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,42 41%�[23;42H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H232,43 41%�[23;43H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H232,44 41%�[23;44H�[?12l�[?25h�[?25l�[34mz�[m�[24;63H232,45 41%�[23;45H�[?12l�[?25h�[?25l�[34me�[m�[24;63H232,46 41%�[23;46H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,47 41%�[23;47H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H232,48 41%�[23;48H�[?12l�[?25h�[?25l�[34mf�[m�[24;63H232,49 41%�[23;49H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,50 41%�[23;50H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H232,51 41%�[23;51H�[?12l�[?25h�[?25l�[34mh�[m�[24;63H232,52 41%�[23;52H�[?12l�[?25h�[?25l�[34me�[m�[24;63H232,53 41%�[23;53H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,54 41%�[23;54H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H232,55 41%�[23;55H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H232,56 41%�[23;56H�[?12l�[?25h�[?25l�[34mn�[m�[24;63H232,57 41%�[23;57H�[?12l�[?25h�[?25l�[34mu�[m�[24;63H232,58 41%�[23;58H�[?12l�[?25h�[?25l�[34mx�[m�[24;63H232,59 41%�[23;59H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,60 41%�[23;60H�[?12l�[?25h�[?25l�[34mf�[m�[24;63H232,61 41%�[23;61H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H232,62 41%�[23;62H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H232,63 41%�[23;63H�[?12l�[?25h�[?25l�[34me�[m�[24;63H232,64 41%�[23;64H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H232,65 41%�[23;65H�[?12l�[?25h�[?25l�[34my�[m�[24;63H232,66 41%�[23;66H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H232,67 41%�[23;67H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H232,68 41%�[23;68H�[?12l�[?25h�[?25l�[34me�[m�[24;63H232,69 41%�[23;69H�[?12l�[?25h�[?25l�[34mm�[m�[24;63H232,70 41%�[23;70H�[?12l�[?25h�[?25l�[34m �[m�[24;63H232,71 41%�[23;71H�[?12l�[?25h�[?25l�[34mc�[m�[24;63H232,72 41%�[23;72H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H232,73 41%�[23;73H�[?12l�[?25h�[?25l�[34mc�[m�[24;63H232,74 41%�[23;74H�[?12l�[?25h�[?25l�[34mh�[m�[24;63H232,75 41%�[23;75H�[?12l�[?25h�[?25l�[34me�[m�[24;63H232,76 41%�[23;76H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H233,1 41%�[23;1H�[?12l�[?25h�[?25l�[24;63H233,2 41%�[23;2H�[?12l�[?25h�[?25l�[24;63H233,3 41%�[23;3H�[?12l�[?25h�[?25l�[24;63H233,4 41%�[23;4H�[?12l�[?25h�[?25l�[24;63H233,5 41%�[23;5H�[?12l�[?25h�[?25l�[24;63H233,6 41%�[23;6H�[?12l�[?25h�[?25l�[24;63H233,7 41%�[23;7H�[?12l�[?25h�[?25l�[24;63H233,8 41%�[23;8H�[?12l�[?25h�[?25l�[24;63H233,9 41%�[23;9H�[?12l�[?25h�[?25l�[24;63H233,10 41%�[23;10H�[?12l�[?25h�[?25l�[24;63H233,11 41%�[23;11H�[?12l�[?25h�[?25l�[24;63H233,12 41%�[23;12H�[?12l�[?25h�[?25l�[24;63H233,13 41%�[23;13H�[?12l�[?25h�[?25l�[24;63H233,14 41%�[23;14H�[?12l�[?25h�[?25l�[24;63H233,15 41%�[23;15H�[?12l�[?25h�[?25l�[24;63H233,16 41%�[23;16H�[?12l�[?25h�[?25l�[24;63H233,17 41%�[23;17H�[?12l�[?25h�[?25l�[24;63H233,18 41%�[23;18H�[?12l�[?25h�[?25l�[24;63H233,19 41%�[23;19H�[?12l�[?25h�[?25l�[24;63H233,20 41%�[23;20H�[?12l�[?25h�[?25l�[24;63H233,21 41%�[23;21H�[?12l�[?25h�[?25l�[24;63H233,22 41%�[23;22H�[?12l�[?25h�[?25l�[24;63H233,23 41%�[23;23H�[?12l�[?25h�[?25l�[24;63H233,24 41%�[23;24H�[?12l�[?25h�[?25l�[24;63H233,25 41%�[23;25H�[?12l�[?25h�[?25l�[24;63H233,26 41%�[23;26H�[?12l�[?25h�[?25l�[24;63H233,27 41%�[23;27H�[?12l�[?25h�[?25l�[24;63H233,28 41%�[23;28H�[?12l�[?25h�[?25l�[34m#�[m�[24;63H233,29 41%�[23;29H�[?12l�[?25h�[?25l�[34m �[m�[24;63H233,30 41%�[23;30H�[?12l�[?25h�[?25l�[34mp�[m�[24;63H233,31 41%�[23;31H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H233,32 41%�[23;32H�[?12l�[?25h�[?25l�[34mu�[m�[24;63H233,33 41%�[23;33H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H233,34 41%�[23;34H�[?12l�[?25h�[?25l�[34m �[m�[24;63H233,35 41%�[23;35H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H233,36 41%�[23;36H�[?12l�[?25h�[?25l�[34mh�[m�[24;63H233,37 41%�[23;37H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H233,38 41%�[23;38H�[?12l�[?25h�[?25l�[34mr�[m�[24;63H233,39 41%�[23;39H�[?12l�[?25h�[?25l�[34me�[m�[24;63H233,40 41%�[23;40H�[?12l�[?25h�[?25l�[34md�[m�[24;63H233,41 41%�[23;41H�[?12l�[?25h�[?25l�[34m_�[m�[24;63H233,42 41%�[23;42H�[?12l�[?25h�[?25l�[34mb�[m�[24;63H233,43 41%�[23;43H�[?12l�[?25h�[?25l�[34mu�[m�[24;63H233,44 41%�[23;44H�[?12l�[?25h�[?25l�[34mf�[m�[24;63H233,45 41%�[23;45H�[?12l�[?25h�[?25l�[34mf�[m�[24;63H233,46 41%�[23;46H�[?12l�[?25h�[?25l�[34me�[m�[24;63H233,47 41%�[23;47H�[?12l�[?25h�[?25l�[34mr�[m�[24;63H233,48 41%�[23;48H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H233,49 41%�[23;49H�[?12l�[?25h�[24;1H�[K�[23;48H�[?25l�[24;63H233,48 41%�[23;48H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H234,0-1 41%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# - Genetic Query Optimizer -�[m�[24;63H�[K�[24;63H235,29 41%�[23;29H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H236,0-1 42%�[23;1H�[?12l�[?25h�[?25l�[24;63H235,29 42%�[22;29H�[?12l�[?25h�[?25l�[24;63H234,0-1 42%�[21;1H�[?12l�[?25h�[?25l�[24;63H233,48 42%�[20;48H�[?12l�[?25h�[?25l�[24;63H232,48 42%�[19;48H�[?12l�[?25h�[?25l�[24;63H232,1 42%�[19;1H�[?12l�[?25h�[?25l�[24;63H231,1 42%�[18;1H�[?12l�[?25h�[?25l�[24;63H230,1 42%�[17;1H�[?12l�[?25h�[?25l�[24;63H229,1 42%�[16;1H�[?12l�[?25h�[?25l�[24;63H228,1 42%�[15;1H�[?12l�[?25h�[?25lrandom_page_cost = 4.0 �[?12l�[?25h�[?25l�[24;63H228,18 42%�[15;18H�[?12l�[?25h�[?25l�[24;63H228,20 42%�[15;20H�[?12l�[?25h�[?25l2��[?12l�[?25h�[?25l�[24;63H228,21 42%�[15;21H�[?12l�[?25h�[?25l�[24;63H228,22 42%�[15;22H�[?12l�[?25h�[?25l�[24;63H228,23-24 42%�[15;24H�[?12l�[?25h�[?25l�[24;63H228,24-32 42%�[15;32H�[?12l�[?25h�[?25l�[24;63H228,23-24 42%�[15;24H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H228,23 42%�[15;41H�[K�[15;23H�[?12l�[?25h�[?25l#�[24;63H228,24 42%�[15;24H�[?12l�[?25h�[?25l�[15;23H�[K�[24;63H228,23 42%�[15;23H�[?12l�[?25h�[?25l�[24;63H228,24 42%�[15;24H�[?12l�[?25h�[?25l�[34m#�[m�[24;63H228,25 42%�[15;25H�[?12l�[?25h�[?25l�[34mC�[m�[24;63H228,26 42%�[15;26H�[?12l�[?25h�[?25l�[34mH�[m�[24;63H228,27 42%�[15;27H�[?12l�[?25h�[?25l�[34mE�[m�[24;63H228,28 42%�[15;28H�[?12l�[?25h�[?25l�[34mC�[m�[24;63H228,29 42%�[15;29H�[?12l�[?25h�[?25l�[34mK�[m�[24;63H228,30 42%�[15;30H�[?12l�[?25h�[?25l�[34mM�[m�[24;63H228,31 42%�[15;31H�[?12l�[?25h�[?25l�[34mE�[m�[24;63H228,32 42%�[15;32H�[?12l�[?25h�[24;1H�[K�[15;31H�[?25l�[24;63H228,31 42%�[15;31H�[?12l�[?25h�[?25l�[24;63H229,24-32 42%�[16;32H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hs�[?25l /s�[?12l�[?25ht�[?25l /st�[?12l�[?25ha�[?25l /sta�[?12l�[?25ht�[?25l /stat�[?12l�[?25hi�[?25l /stati�[?12l�[?25hs�[?25l /statis�[?12l�[?25h�[?25l /stati�[24;7H�[K�[24;1H/stati�[?12l�[?25h�[?25l /stat�[24;6H�[K�[24;1H/stat�[?12l�[?25hi�[?25l /stati�[?12l�[?25hs�[?25l /statis�[?12l�[?25h �[?25l/statis �[1;23r�[1;1H�[11M�[1;24r�[8;1Heffective�[13;1H�[34m#geqo = on #geqo_threshold = 12 #geqo_effort = 5 # range 1-10 #geqo_pool_size = 0 # selects default based on effort #geqo_generations = 0 # selects default based on effort #geqo_selection_bias = 2.0 # range 1.5-2.0 #geqo_seed = 0.0 # range 0.0-1.0 # - Other Planner Options - #default_�[m�[30m�[43mstatis�[m�[34mtics_target = 100 # range 1-10000�[m�[24;1H�[K�[24;63H247,10 44%�[23;10H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#constraint_exclusion = partition # on, off, or partition�[m�[24;63H�[K�[24;63H248,10 44%�[23;10H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#cursor_tuple_fraction = 0.1 # range 0.0-1.0�[m�[24;63H�[K�[24;63H249,10 44%�[23;10H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#from_collapse_limit = 8�[m�[24;63H�[K�[24;63H250,10 44%�[23;10H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hs�[?25l /s�[?12l�[?25ht�[?25l /st�[?12l�[?25hd�[?25l /std�[?12l�[?25he�[?25l /stde�[?12l�[?25hr�[?25l /stder�[?12l�[?25hr�[?25l /stderr�[?12l�[?25h �[?25l/stderr �[1;23r�[1;1H�[11M�[1;24r�[9;10H�[34mstatis�[13;1H#join_collapse_limit = 8 # 1 disables collapsing of explicit �[14;41H# JOIN clauses #------------------------------------------------------------------------------ # ERROR REPORTING AND LOGGING #------------------------------------------------------------------------------ # - Where to Log -�[m log_destination = �[31m'�[m�[30m�[43mstderr�[m�[31m'�[m�[14C�[34m# Valid values are combinations of�[m�[24;1H�[K�[24;63H261,20 46%�[23;20H�[?12l�[?25h�[?25l �[1m-- INSERT --�[m�[24;63H�[K�[24;63H261,20 46%�[23;20H�[31m'�[m �[34m# Valid values are combinations of�[m�[23;67H�[K�[23;20H�[?12l�[?25h�[?25l�[31mc'�[m�[24;63H261,21 46%�[23;21H�[?12l�[?25h�[?25l�[31ms'�[m�[24;63H261,22 46%�[23;22H�[?12l�[?25h�[?25l�[31mv'�[m�[24;63H261,23 46%�[23;23H�[?12l�[?25h�[?25l�[31ml'�[m�[8C �[34m# Valid values are combinations of�[m�[24;63H261,24 46%�[23;24H�[?12l�[?25h�[?25l�[31mo'�[m�[24;63H261,25 46%�[23;25H�[?12l�[?25h�[?25l�[31mg'�[m�[24;63H261,26 46%�[23;26H�[?12l�[?25h�[24;1H�[K�[23;25H�[?25l�[24;63H261,25 46%�[23;25H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# �[m�[30m�[43mstderr�[m�[34m, csvlog, syslog, and eventlog,�[m�[24;63H�[K�[24;63H262,4-32 47%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# depending on platform. csvlog�[m�[24;63H�[K�[24;63H263,4-32 47%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# requires logging_collector to be on.�[m�[24;63H�[K�[24;63H264,4-32 47%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H265,0-1 47%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# This is used when logging to �[m�[30m�[43mstderr�[m�[34m:�[m�[24;63H�[K�[24;63H266,25 47%�[23;25H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlogging_collector = on�[18C�[34m# Enable capturing of �[m�[30m�[43mstderr�[m�[34m and csvlog�[m�[24;63H�[K�[24;63H267,24-32 48%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# into log files. Required to be on for�[m�[24;63H�[K�[24;63H268,4-32 48%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# csvlogs.�[m�[24;63H�[K�[24;63H269,4-32 48%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# (change requires restart)�[m�[24;63H�[K�[24;63H270,4-32 48%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H271,0-1 48%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# These are only used if logging_collector is on:�[m�[24;63H�[K�[24;63H272,25 49%�[23;25H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_directory = �[31m'pg_log'�[m�[16C�[34m# directory where log files are written,�[m�[24;63H�[K�[24;63H273,25-32 49%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# can be absolute or relative to PGDATA�[m�[24;63H�[K�[24;63H274,4-32 49%�[23;32H�[?12l�[?25h�[?25l�[24;63H273,25-32 49%�[22;32H�[?12l�[?25h�[?25l�[24;63H272,25 49%�[21;25H�[?12l�[?25h�[?25l�[24;63H271,0-1 49%�[20;1H�[?12l�[?25h�[?25l�[24;63H270,4-32 49%�[19;32H�[?12l�[?25h�[?25l�[24;63H269,4-32 49%�[18;32H�[?12l�[?25h�[?25l�[24;63H268,4-32 49%�[17;32H�[?12l�[?25h�[?25l�[24;63H267,24-32 49%�[16;32H�[?12l�[?25h�[?25l�[24;63H266,25 49%�[15;25H�[?12l�[?25h�[?25l�[24;63H265,0-1 49%�[14;1H�[?12l�[?25h�[?25l�[24;63H264,4-32 49%�[13;32H�[?12l�[?25h�[?25l�[24;63H263,4-32 49%�[12;32H�[?12l�[?25h�[?25l�[24;63H262,4-32 49%�[11;32H�[?12l�[?25h�[?25l�[24;63H261,25 49%�[10;25H�[?12l�[?25h�[?25l�[24;63H262,4-32 49%�[11;32H�[?12l�[?25h�[?25l�[24;63H263,4-32 49%�[12;32H�[?12l�[?25h�[?25l�[24;63H264,4-32 49%�[13;32H�[?12l�[?25h�[?25l�[24;63H265,0-1 49%�[14;1H�[?12l�[?25h�[?25l�[24;63H266,25 49%�[15;25H�[?12l�[?25h�[?25l�[24;63H267,24-32 49%�[16;32H�[?12l�[?25h�[?25l�[24;63H268,4-32 49%�[17;32H�[?12l�[?25h�[?25l�[24;63H269,4-32 49%�[18;32H�[?12l�[?25h�[?25l�[24;63H270,4-32 49%�[19;32H�[?12l�[?25h�[?25l�[24;63H271,0-1 49%�[20;1H�[?12l�[?25h�[?25l�[24;63H272,25 49%�[21;25H�[?12l�[?25h�[?25l�[24;63H273,25-32 49%�[22;32H�[?12l�[?25h�[?25l�[24;63H273,17 49%�[22;17H�[?12l�[?25h�[?25l�[24;63H273,18 49%�[22;18H�[?12l�[?25h�[?25l �[1m-- INSERT --�[m�[24;63H�[K�[24;63H273,18 49%�[22;18H�[?12l�[?25h�[?25l�[31m/pg_log'�[m�[24;63H273,19 49%�[22;19H�[?12l�[?25h�[?25l�[31mvpg_log'�[m�[24;63H273,20 49%�[22;20H�[?12l�[?25h�[?25l�[31mapg_log'�[m�[24;63H273,21 49%�[22;21H�[?12l�[?25h�[?25l�[31mrpg_log'�[m�[24;63H273,22 49%�[22;22H�[?12l�[?25h�[?25l�[31m/pg_log'�[m�[24;63H273,23 49%�[22;23H�[?12l�[?25h�[?25l�[31mlpg_log'�[m�[24;63H273,24 49%�[22;24H�[?12l�[?25h�[?25l�[31mopg_log'�[m�[24;63H273,25 49%�[22;25H�[?12l�[?25h�[?25l�[31mgpg_log'�[m�[8C �[34m# directory where log files are �[23;1Hwritten,�[m�[23;41H�[K�[24;63H273,26 49%�[22;26H�[?12l�[?25h�[?25l�[31m/pg_log'�[m�[46C�[34m �[23;1Hw�[m�[24;63H273,27 49%�[22;27H�[?12l�[?25h�[24;1H�[K�[22;26H�[?25l�[24;63H273,26 49%�[22;26H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# can be absolute or relative to PGDATA�[m�[24;63H�[K�[24;63H274,4-32 49%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_filename = �[31m'postgresql-%a.log'�[m �[34m# log file name pattern,�[m�[24;63H�[K�[24;63H275,26 49%�[23;26H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# can include strftime() escapes�[m�[24;63H�[K�[24;63H276,4-32 50%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_truncate_on_rotation = on�[11C�[34m# If on, an existing log file of the�[m�[24;63H�[K�[24;63H277,26 50%�[23;26H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# same name as the new log file will be�[m�[24;63H�[K�[24;63H278,4-32 50%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# truncated rather than appended to.�[m�[24;63H�[K�[24;63H279,4-32 50%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# But such truncation only occurs on�[m�[24;63H�[K�[24;63H280,4-32 50%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# time-driven rotation, not on restarts�[m�[24;63H�[K�[24;63H281,4-32 50%�[23;32H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# or size-driven rotation. Default is�[m�[24;63H�[K�[24;63H282,4-32 51%�[23;32H�[?12l�[?25h�[?25l�[24;63H281,4-32 51%�[22;32H�[?12l�[?25h�[?25l�[24;63H280,4-32 51%�[21;32H�[?12l�[?25h�[?25l�[24;63H279,4-32 51%�[20;32H�[?12l�[?25h�[?25l�[24;63H278,4-32 51%�[19;32H�[?12l�[?25h�[?25l�[24;63H277,26 51%�[18;26H�[?12l�[?25h�[?25l�[24;63H276,4-32 51%�[17;32H�[?12l�[?25h�[?25l�[24;63H275,26 51%�[16;26H�[?12l�[?25h�[?25l�[24;63H274,4-32 51%�[15;32H�[?12l�[?25h�[?25l�[24;63H273,26 51%�[13;26H�[?12l�[?25h�[?25l�[24;63H273,25 51%�[13;25H�[?12l�[?25h�[?25l�[24;63H273,24 51%�[13;24H�[?12l�[?25h�[?25l�[24;63H273,23 51%�[13;23H�[?12l�[?25h�[?25l�[24;63H273,22 51%�[13;22H�[?12l�[?25h�[?25l�[24;63H273,21 51%�[13;21H�[?12l�[?25h�[?25l�[24;63H273,20 51%�[13;20H�[?12l�[?25h�[?25l�[24;63H273,19 51%�[13;19H�[?12l�[?25h�[?25l�[24;63H273,18 51%�[13;18H�[?12l�[?25h�[?25l�[31mvar/log/pg_log'�[m �[46C�[34m �[14;1Hw�[13;18H�[?12l�[?25h�[?25l�[13;23r�[m�[23;1H �[1;24r�[13;1Hlog_directory = �[31m'ar/log/pg_log'�[m�[9C�[34m# directory where log files are written,�[23;41H# off, meaning append to existing files�[m�[24;63H�[K�[24;63H273,18 51%�[13;18H�[?12l�[?25h�[?25l�[31mr/log/pg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[31m/log/pg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[31mlog/pg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[31mog/pg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[31mg/pg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[31m/pg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[31mpg_log'�[m �[13;18H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H273,18 51%�[13;18H�[?12l�[?25h�[?25l�[31m/pg_log'�[m�[24;63H273,19 51%�[13;19H�[?12l�[?25h�[?25l�[31mvpg_log'�[m�[24;63H273,20 51%�[13;20H�[?12l�[?25h�[?25l�[31mapg_log'�[m�[24;63H273,21 51%�[13;21H�[?12l�[?25h�[?25l�[31mrpg_log'�[m�[24;63H273,22 51%�[13;22H�[?12l�[?25h�[?25l�[31m/pg_log'�[m�[24;63H273,23 51%�[13;23H�[?12l�[?25h�[?25l�[31mlpg_log'�[m�[24;63H273,24 51%�[13;24H�[?12l�[?25h�[?25l�[31mopg_log'�[m�[24;63H273,25 51%�[13;25H�[?12l�[?25h�[?25l�[14;23r�[14;1H�[L�[1;24r�[13;25H�[31mgpg_log'�[m�[8C �[34m# directory where log files are �[14;1Hwritten,�[m�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H273,26 51%�[13;26H�[?12l�[?25h�[?25l�[31m/pg_log'�[m�[46C�[34m �[14;1Hw�[m�[24;63H273,27 51%�[13;27H�[?12l�[?25h�[24;1H�[K�[13;26H�[?25l�[24;63H273,26 51%�[13;26H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25h �[?25l"postgresql.conf" "postgresql.conf" 530L, 18119C written�[24C273,26 51% "postgresql.conf" 530L, 18119C written�[24;63H�[K�[24;63H273,26 51%�[13;26H�[?12l�[?25h�[?25l�[24;1H�[K�[24;1H/�[?12l�[?25hl�[?25l /l�[?12l�[?25ho�[?25l /lo�[?12l�[?25hg�[?25l /log�[?12l�[?25h_�[?25l /log_�[?12l�[?25hc�[?25l /log_c�[?12l�[?25ho�[?25l /log_co�[?12l�[?25hn�[?25l /log_con�[?12l�[?25hn�[?25l /log_conn�[?12l�[?25he�[?25l /log_conne�[?12l�[?25hc�[?25l /log_connec�[?12l�[?25ht�[?25l /log_connect�[?12l�[?25h �[?25l/log_connect �[27m�[m�[H�[2J�[1;41H�[34m# of milliseconds # - What to Log - #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off #debug_pretty_print = on #log_checkpoints = off #�[m�[30m�[43mlog_connect�[m�[34mions = off #log_disconnections = off #log_duration = off #log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off #log_line_prefix = '' # special values:�[17;41H# %a = application name�[18;41H# %u = user name�[19;41H# %d = database name�[20;41H# %r = remote host and port�[21;41H# %h = remote host�[22;41H# %p = process ID�[23;41H# %t = timestamp without milliseconds�[m�[24;63H355,2 67%�[11;2H�[?12l�[?25h�[?25l�[24;63H355,1 67%�[11;1H�[?12l�[?25h�[?25l�[24;63H354,1 67%�[10;1H�[?12l�[?25h�[?25l�[24;63H353,1 67%�[9;1H�[?12l�[?25h�[?25l�[24;63H352,1 67%�[8;1H�[?12l�[?25h�[?25l�[24;63H351,1 67%�[7;1H�[?12l�[?25h�[?25l�[24;63H350,1 67%�[6;1H�[?12l�[?25h�[?25l�[24;63H349,0-1 67%�[5;1H�[?12l�[?25h�[?25l�[24;63H348,1 67%�[4;1H�[?12l�[?25h�[?25l�[24;63H347,0-1 67%�[3;1H�[?12l�[?25h�[?25l�[24;63H346,0-1 67%�[2;1H�[?12l�[?25h�[?25l�[24;63H345,1-8 67%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2L�[1;24r�[1;41H�[34m# statements running at least this numbee�[2;1Hr�[m�[24;63H�[K�[24;63H344,1-8 67%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# and their durations, > 0 logs only�[m�[24;63H�[K�[24;63H343,1-8 67%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;1H�[34m#log_min_duration_statement = -1 # -1 is disabled, 0 logs all statements�[m�[24;63H�[K�[24;63H342,1 67%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[24;63H�[K�[24;63H341,0-1 66%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# panic (effectively off)�[m�[24;63H�[K�[24;63H340,1-8 66%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# fatal�[m�[24;63H�[K�[24;63H339,1-8 66%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# log�[m�[24;63H�[K�[24;63H338,1-8 66%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# error�[m�[24;63H�[K�[24;63H337,1-8 66%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# warning�[m�[24;63H�[K�[24;63H336,1-8 65%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# notice�[m�[24;63H�[K�[24;63H335,1-8 65%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# info�[m�[24;63H�[K�[24;63H334,1-8 65%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# debug1�[m�[24;63H�[K�[24;63H333,1-8 65%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# debug2�[m�[24;63H�[K�[24;63H332,1-8 65%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# debug3�[m�[24;63H�[K�[24;63H331,1-8 64%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# debug4�[m�[24;63H�[K�[24;63H330,1-8 64%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# debug5�[m�[24;63H�[K�[24;63H329,1-8 64%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;1H�[34m#log_min_error_statement = error # values in order of decreasing detail:�[m�[24;63H�[K�[24;63H328,1 64%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[24;63H�[K�[24;63H327,0-1 64%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# panic�[m�[24;63H�[K�[24;63H326,1-8 63%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# fatal�[m�[24;63H�[K�[24;63H325,1-8 63%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# log�[m�[24;63H�[K�[24;63H324,1-8 63%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# error�[m�[24;63H�[K�[24;63H323,1-8 63%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# warning�[m�[23;1H�[1m�[34m@ �[m�[24;63H�[K�[24;63H322,1-8 63%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# notice�[m�[24;63H�[K�[24;63H321,1-8 63%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# info�[m�[24;63H�[K�[24;63H320,1-8 62%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# debug1�[m�[24;63H�[K�[24;63H319,1-8 62%�[1;8H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hl�[?25l /l�[?12l�[?25ho�[?25l /lo�[?12l�[?25hg�[?25l /log�[?12l�[?25h_�[?25l /log_�[?12l�[?25hd�[?25l /log_d�[?12l�[?25he�[?25l /log_de�[?12l�[?25hs�[?25l /log_des�[?12l�[?25ht�[?25l /log_dest�[?12l�[?25h �[?25l/log_dest �[31msearch hit BOTTOM, continuing at TOP�[27m�[m�[H�[2J�[1;1H�[34m#from_collapse_limit = 8 #join_collapse_limit = 8 # 1 disables collapsing of explicit �[3;41H# JOIN clauses #------------------------------------------------------------------------------ # ERROR REPORTING AND LOGGING #------------------------------------------------------------------------------ # - Where to Log -�[m �[30m�[43mlog_dest�[mination = �[31m'csvlog'�[m�[14C�[34m# Valid values are combinations of�[13;41H# stderr, csvlog, syslog, and eventlog,�[14;41H# depending on platform. csvlog�[15;41H# requires logging_collector to be on. # This is used when logging to stderr:�[m logging_collector = on�[18C�[34m# Enable capturing of stderr and csvlog�[19;41H# into log files. Required to be on for�[20;41H# csvlogs.�[21;41H# (change requires restart) # These are only used if logging_collector is on:�[m�[24;63H261,1 49% �[31msearch hit BOTTOM, continuing at TOP�[m�[24;63H�[K�[24;63H261,1 49%�[12;1H�[?12l�[?25h�[?25l�[24;63H262,1-8 49%�[13;8H�[?12l�[?25h�[?25l�[24;63H263,1-8 49%�[14;8H�[?12l�[?25h�[?25l�[24;63H264,1-8 49%�[15;8H�[?12l�[?25h�[?25l�[24;63H265,0-1 49%�[16;1H�[?12l�[?25h�[?25l�[24;63H266,1 49%�[17;1H�[?12l�[?25h�[?25l�[24;63H267,1 49%�[18;1H�[?12l�[?25h�[?25l�[24;63H268,1-8 49%�[19;8H�[?12l�[?25h�[?25l�[24;63H269,1-8 49%�[20;8H�[?12l�[?25h�[?25l�[24;63H270,1-8 49%�[21;8H�[?12l�[?25h�[?25l�[24;63H271,0-1 49%�[22;1H�[?12l�[?25h�[?25l�[24;63H272,1 49%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2M�[1;24r�[22;1Hlog_directory = �[31m'/var/log/pg_log'�[m�[15C�[34m# directory where log files are �[23;1Hwritten,�[m�[24;1H�[K�[24;63H273,1 49%�[22;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# can be absolute or relative to PGDATA�[m�[24;63H�[K�[24;63H274,1-8 49%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_filename = �[31m'postgresql-%a.log'�[m �[34m# log file name pattern,�[m�[24;63H�[K�[24;63H275,1 49%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# can include strftime() escapes�[m�[24;63H�[K�[24;63H276,1-8 50%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_truncate_on_rotation = on�[11C�[34m# If on, an existing log file of the�[m�[24;63H�[K�[24;63H277,1 50%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# same name as the new log file will be�[m�[24;63H�[K�[24;63H278,1-8 50%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# truncated rather than appended to.�[m�[24;63H�[K�[24;63H279,1-8 50%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# But such truncation only occurs on�[m�[24;63H�[K�[24;63H280,1-8 50%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# time-driven rotation, not on restarts�[m�[24;63H�[K�[24;63H281,1-8 50%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# or size-driven rotation. Default is�[m�[24;63H�[K�[24;63H282,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# off, meaning append to existing files�[m�[24;63H�[K�[24;63H283,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# in all cases.�[m�[24;63H�[K�[24;63H284,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_rotation_age = 1d�[19C�[34m# Automatic rotation of logfiles will�[m�[24;63H�[K�[24;63H285,1 51%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# happen after that time. 0 disables.�[m�[24;63H�[K�[24;63H286,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_rotation_size = 0�[19C�[34m# Automatic rotation of logfiles will �[m�[24;63H�[K�[24;63H287,1 52%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# happen after that much log output.�[m�[24;63H�[K�[24;63H288,1-8 52%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# 0 disables.�[m�[24;63H�[K�[24;63H289,1-8 52%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H290,0-1 52%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# These are relevant when logging to syslog:�[m�[24;63H�[K�[24;63H291,1 52%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#syslog_facility = 'LOCAL0'�[m�[24;63H�[K�[24;63H292,1 53%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#syslog_ident = 'postgres'�[m�[24;63H�[K�[24;63H293,1 53%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H294,0-1 53%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2M�[1;24r�[22;1H�[34m#silent_mode = off # Run server silently.�[23;41H# DO NOT USE without syslog or�[m�[24;63H�[K�[24;63H295,1 53%�[22;1H�[?12l�[?25h�[?25l�[24;63H296,1-8 53%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# logging_collector�[m�[24;63H�[K�[24;63H297,1-8 54%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# (change requires restart)�[m�[24;63H�[K�[24;63H298,1-8 54%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[24;63H�[K�[24;63H299,0-1 54%�[23;1H�[?12l�[?25h�[?25l�[24;63H298,1-8 54%�[22;8H�[?12l�[?25h�[?25l�[24;63H297,1-8 54%�[21;8H�[?12l�[?25h�[?25l�[24;63H296,1-8 54%�[20;8H�[?12l�[?25h�[?25l�[24;63H295,1 54%�[19;1H�[?12l�[?25h�[?25l�[24;63H294,0-1 54%�[18;1H�[?12l�[?25h�[?25l�[24;63H293,1 54%�[17;1H�[?12l�[?25h�[?25l�[24;63H292,1 54%�[16;1H�[?12l�[?25h�[?25l�[24;63H291,1 54%�[15;1H�[?12l�[?25h�[?25l�[24;63H290,0-1 54%�[14;1H�[?12l�[?25h�[?25l�[24;63H289,1-8 54%�[13;8H�[?12l�[?25h�[?25l�[24;63H288,1-8 54%�[12;8H�[?12l�[?25h�[?25l�[24;63H287,1 54%�[11;1H�[?12l�[?25h�[?25l�[24;63H286,1-8 54%�[10;8H�[?12l�[?25h�[?25l�[24;63H285,1 54%�[9;1H�[?12l�[?25h�[?25l�[24;63H284,1-8 54%�[8;8H�[?12l�[?25h�[?25l�[24;63H283,1-8 54%�[7;8H�[?12l�[?25h�[?25l�[24;63H282,1-8 54%�[6;8H�[?12l�[?25h�[?25l�[24;63H281,1-8 54%�[5;8H�[?12l�[?25h�[?25l�[24;63H280,1-8 54%�[4;8H�[?12l�[?25h�[?25l�[24;63H279,1-8 54%�[3;8H�[?12l�[?25h�[?25l�[24;63H278,1-8 54%�[2;8H�[?12l�[?25h�[?25l�[24;63H277,1 54%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# can include strftime() escapes�[m�[24;63H�[K�[24;63H276,1-8 54%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;1Hlog_filename = �[31m'postgresql-%a.log'�[m �[34m# log file name pattern,�[m�[24;63H�[K�[24;63H275,1 54%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# can be absolute or relative to PGDATA�[m�[24;63H�[K�[24;63H274,1-8 53%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[2L�[1;24r�[1;1Hlog_directory = �[31m'/var/log/pg_log'�[m�[15C�[34m# directory where log files are �[2;1Hwritten,�[m�[24;63H�[K�[24;63H273,1 53%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;1H�[34m# These are only used if logging_collector is on:�[m�[24;63H�[K�[24;63H272,1 53%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[24;63H�[K�[24;63H271,0-1 53%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# (change requires restart)�[m�[24;63H�[K�[24;63H270,1-8 52%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# csvlogs.�[m�[24;63H�[K�[24;63H269,1-8 52%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# into log files. Required to be on for�[m�[24;63H�[K�[24;63H268,1-8 52%�[1;8H�[?12l�[?25h�[24;1H �[?1l�>�[?1049l [1]+ Stopped sudo -u postgres vim /data/9.0/data/postgresql.conf �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# man date Formatting page, please wait... �[?1049h�[?1h�= DATE(1) User Commands DATE(1) �[1mNAME�[0m date - print or set the system date and time �[1mSYNOPSIS�[0m �[1mdate�[0m [�[4mOPTION�[24m]... [�[4m+FORMAT�[24m] �[1mdate�[0m [�[4m-u|--utc|--universal�[24m] [�[4mMMDDhhmm�[24m[[�[4mCC�[24m]�[4mYY�[24m][�[4m.ss�[24m]] �[1mDESCRIPTION�[0m Display the current time in the given FORMAT, or set the system date. �[1m-d�[0m, �[1m--date�[0m=�[4mSTRING�[24m display time described by STRING, not ‘now’ �[1m-f�[0m, �[1m--file�[0m=�[4mDATEFILE�[24m like �[1m--date�[0m once for each line of DATEFILE �[1m-r�[0m, �[1m--reference�[0m=�[4mFILE�[24m display the last modification time of FILE �[1m-R�[0m, �[1m--rfc-2822�[0m output date and time in RFC 2822 format :�[K �[K �[1m--rfc-3339�[0m=�[4mTIMESPEC�[24m output date and time in RFC 3339 format. TIMESPEC=‘date’, ‘sec- onds’, or ‘ns’ for date and time to the indicated precision. �[1m-s�[0m, �[1m--set�[0m=�[4mSTRING�[24m set time described by STRING �[1m-u�[0m, �[1m--utc�[0m, �[1m--universal�[0m print or set Coordinated Universal Time �[1m--help�[0m display this help and exit �[1m--version�[0m output version information and exit FORMAT controls the output. The only valid option for the second form specifies Coordinated Universal Time. Interpreted sequences are: %% a literal % %a locale’s abbreviated weekday name (e.g., Sun) :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K %A locale’s full weekday name (e.g., Sunday) :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K %b locale’s abbreviated month name (e.g., Jan) :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K %B locale’s full month name (e.g., January) :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K %c locale’s date and time (e.g., Thu Mar 3 23:05:25 2005) :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K :�[K �[K �[KESC���ESC�[KO�O�[KB�B �[K %C century; like %Y, except omit last two digits (e.g., 21) :�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# fg sudo -u postgres vim /data/9.0/data/postgresql.conf �[?1049h�[?1h�=�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[1;41H�[34m# into log files. Required to be on for�[2;41H# csvlogs.�[3;41H# (change requires restart) # These are only used if logging_collector is on:�[m log_directory = �[31m'/var/log/pg_log'�[m�[15C�[34m# directory where log files are �[7;1Hwritten,�[8;41H# can be absolute or relative to PGDATA�[m log_filename = �[31m'postgresql-%a.log'�[m �[34m# log file name pattern,�[10;41H# can include strftime() escapes�[m log_truncate_on_rotation = on�[11C�[34m# If on, an existing log file of the�[12;41H# same name as the new log file will be�[13;41H# truncated rather than appended to.�[14;41H# But such truncation only occurs on�[15;41H# time-driven rotation, not on restarts�[16;41H# or size-driven rotation. Default is�[17;41H# off, meaning append to existing files�[18;41H# in all cases.�[m log_rotation_age = 1d�[19C�[34m# Automatic rotation of logfiles will�[20;41H# happen after that time. 0 disables.�[m log_rotation_size = 0�[19C�[34m# Automatic rotation of logfiles will �[22;41H# happen after that much log output.�[23;41H# 0 disables.�[m�[24;63H268,1-8 52%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;1Hlogging_collector = on�[18C�[34m# Enable capturing of stderr and csvlog�[m�[24;63H�[K�[24;63H267,1 52%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;1H�[34m# This is used when logging to stderr:�[m�[24;63H�[K�[24;63H266,1 52%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[24;63H�[K�[24;63H265,0-1 51%�[1;1H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# requires logging_collector to be on.�[m�[24;63H�[K�[24;63H264,1-8 51%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# depending on platform. csvlog�[m�[24;63H�[K�[24;63H263,1-8 51%�[1;8H�[?12l�[?25h�[?25l�[1;23r�[1;1H�[L�[1;24r�[1;41H�[34m# stderr, csvlog, syslog, and eventlog,�[m�[24;63H�[K�[24;63H262,1-8 51%�[1;8H�[?12l�[?25h�[?25l�[24;63H263,1-8 51%�[2;8H�[?12l�[?25h�[?25l�[24;63H264,1-8 51%�[3;8H�[?12l�[?25h�[?25l�[24;63H265,0-1 51%�[4;1H�[?12l�[?25h�[?25l�[24;63H266,1 51%�[5;1H�[?12l�[?25h�[?25l�[24;63H267,1 51%�[6;1H�[?12l�[?25h�[?25l�[24;63H268,1-8 51%�[7;8H�[?12l�[?25h�[?25l�[24;63H269,1-8 51%�[8;8H�[?12l�[?25h�[?25l�[24;63H270,1-8 51%�[9;8H�[?12l�[?25h�[?25l�[24;63H271,0-1 51%�[10;1H�[?12l�[?25h�[?25l�[24;63H272,1 51%�[11;1H�[?12l�[?25h�[?25l�[24;63H273,1 51%�[12;1H�[?12l�[?25h�[?25l�[24;63H274,1-8 51%�[14;8H�[?12l�[?25h�[?25l�[24;63H275,1 51%�[15;1H�[?12l�[?25h�[?25l�[24;63H276,1-8 51%�[16;8H�[?12l�[?25h�[?25l�[24;63H277,1 51%�[17;1H�[?12l�[?25h�[?25l�[24;63H278,1-8 51%�[18;8H�[?12l�[?25h�[?25l�[24;63H279,1-8 51%�[19;8H�[?12l�[?25h�[?25l�[24;63H280,1-8 51%�[20;8H�[?12l�[?25h�[?25l�[24;63H281,1-8 51%�[21;8H�[?12l�[?25h�[?25l�[24;63H282,1-8 51%�[22;8H�[?12l�[?25h�[?25l�[24;63H283,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# in all cases.�[m�[24;63H�[K�[24;63H284,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_rotation_age = 1d�[19C�[34m# Automatic rotation of logfiles will�[m�[24;63H�[K�[24;63H285,1 51%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# happen after that time. 0 disables.�[m�[24;63H�[K�[24;63H286,1-8 51%�[23;8H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hlog_rotation_size = 0�[19C�[34m# Automatic rotation of logfiles will �[m�[24;63H�[K�[24;63H287,1 52%�[23;1H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;41H�[34m# happen after that much log output.�[m�[24;63H�[K�[24;63H288,1-8 52%�[23;8H�[?12l�[?25h�[?25l�[27m�[m�[H�[2J�[27m�[m�[H�[2J�[1;1Hlog_rotation_size = 0�[19C�[34m# Automatic rotation of logfiles will �[2;41H# happen after that much log output.�[3;41H# 0 disables. # These are relevant when logging to syslog: #syslog_facility = 'LOCAL0' #syslog_ident = 'postgres' #silent_mode = off # Run server silently.�[10;41H# DO NOT USE without syslog or�[11;41H# logging_collector�[12;41H# (change requires restart) # - When to Log - #client_min_messages = notice # values in order of decreasing detail:�[18;41H# debug5�[19;41H# debug4�[20;41H# debug3�[21;41H# debug2�[22;41H# debug1�[23;41H# log�[m�[24;63H287,1 56%�[1;1H�[?12l�[?25h�[?25l �[21C�[34mhappen after that time. 0 disables.�[m log_rotation_size = 0�[21C�[34mAutomatic rotation of logfiles will �[3;43Hhappen after that much log output.�[4;41H# 0 disables.�[m�[5;1H�[K�[6;2H�[34m These are relevant when logging to syslog:�[7;9Hfacility = 'LOCAL0' #syslog_ident = 'postgres'�[m�[9;1H�[K�[10;1H�[34m#silent_mode = off # Run server silently.�[m�[10;63H�[K�[11;43H�[34mDO NOT USE without syslog or�[12;43Hlogging_collector�[m�[12;60H�[K�[13;41H�[34m# (change requires restart)�[m�[15;1H�[K�[16;1H�[34m# - When to Log -�[m�[17;1H�[K�[18;1H�[34m#client_min_messages = notice # values in order of decreasing detail:�[19;50H5�[20;50H4�[21;50H3�[22;50H2�[23;45Hdebug1�[m�[24;63H286,1-8 56%�[1;8H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hl�[?25l /l�[?12l�[?25ho�[?25l /lo�[?12l�[?25hg�[?25l /log�[?12l�[?25h_�[?25l /log_�[?12l�[?25hm�[?25l /log_m�[?12l�[?25hi�[?25l /log_mi�[?12l�[?25hn�[?25l /log_min�[?12l�[?25h_�[?25l /log_min_�[?12l�[?25hd�[?25l /log_min_d�[?12l�[?25hu�[?25l /log_min_du�[?12l�[?25hr�[?25l /log_min_dur�[?12l�[?25ha�[?25l /log_min_dura�[?12l�[?25ht�[?25l /log_min_durat�[?12l�[?25h �[?25l/log_min_durat �[27m�[m�[H�[2J�[1;41H�[34m# debug3�[2;41H# debug2�[3;41H# debug1�[4;41H# info�[5;41H# notice�[6;41H# warning�[7;41H# error�[8;41H# log�[9;41H# fatal�[10;41H# panic (effectively off) #�[m�[30m�[43mlog_min_durat�[m�[34mion_statement = -1 # -1 is disabled, 0 logs all statements�[13;41H# and their durations, > 0 logs only�[14;41H# statements running at least this numbee�[15;1Hr�[16;41H# of milliseconds # - What to Log - #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off�[m�[24;63H342,2 64%�[12;2H�[?12l�[?25h�[?25l�[24;63H342,1 64%�[12;1H�[?12l�[?25h�[?25l�[30m�[43mlog_min_durat�[mion_statement = -1 �[34m# -1 is disabled, 0 logs all statements�[m�[12;72H�[K�[12;1H�[?12l�[?25h�[?25l�[24;63H342,28 64%�[12;28H�[?12l�[?25h�[?25l�[24;63H342,30 64%�[12;30H�[?12l�[?25h�[?25l�[24;63H342,31 64%�[12;31H�[?12l�[?25h�[?25l�[24;63H342,33 64%�[12;33H�[?12l�[?25h�[?25l�[24;63H342,34 64%�[12;34H�[?12l�[?25h�[?25l�[24;63H342,35 64%�[12;35H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H342,35 64%�[12;35H�[K�[12;35H�[?12l�[?25h�[?25l�[34mP�[m�[24;63H342,36 64%�[12;36H�[?12l�[?25h�[?25l�[34mR�[m�[24;63H342,37 64%�[12;37H�[?12l�[?25h�[?25l�[34mO�[m�[24;63H342,38 64%�[12;38H�[?12l�[?25h�[?25l�[34mD�[m�[24;63H342,39 64%�[12;39H�[?12l�[?25h�[24;1H�[K�[12;38H�[?25l�[24;63H342,38 64%�[12;38H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25h �[?25l"postgresql.conf" "postgresql.conf" 530L, 18085C written�[24C342,38 64% "postgresql.conf" 530L, 18085C written�[24;63H�[K�[24;63H342,38 64%�[12;38H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;13H�[K�[24;63H343,1 64%�[13;23r�[13;1H�[L�[1;24r�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H343,1 64%�[13;1H�[?12l�[?25h�[?25l�[24;63H343,2 64%�[13;2H�[?12l�[?25h�[?25l�[24;63H343,3 64%�[13;3H�[?12l�[?25h�[?25l�[34m#�[m�[24;63H343,4 64%�[13;4H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,5 64%�[13;5H�[?12l�[?25h�[?25l�[34m-�[m�[24;63H343,6 64%�[13;6H�[?12l�[?25h�[?25l�[34m1�[m�[24;63H343,7 64%�[13;7H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,8 64%�[13;8H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H343,9 64%�[13;9H�[?12l�[?25h�[?25l�[34md�[m�[24;63H343,10 64%�[13;10H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,11 64%�[13;11H�[?12l�[?25h�[?25l�[13;10H�[K�[24;63H343,10 64%�[13;10H�[?12l�[?25h�[?25l�[13;9H�[K�[24;63H343,9 64%�[13;9H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H343,10 64%�[13;10H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,11 64%�[13;11H�[?12l�[?25h�[?25l�[34md�[m�[24;63H343,12 64%�[13;12H�[?12l�[?25h�[?25l�[34mi�[m�[24;63H343,13 64%�[13;13H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H343,14 64%�[13;14H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H343,15 64%�[13;15H�[?12l�[?25h�[?25l�[34mb�[m�[24;63H343,16 64%�[13;16H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H343,17 64%�[13;17H�[?12l�[?25h�[?25l�[34me�[m�[24;63H343,18 64%�[13;18H�[?12l�[?25h�[?25l�[34md�[m�[24;63H343,19 64%�[13;19H�[?12l�[?25h�[?25l�[34m,�[m�[24;63H343,20 64%�[13;20H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,21 64%�[13;21H�[?12l�[?25h�[?25l�[34m0�[m�[24;63H343,22 64%�[13;22H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,23 64%�[13;23H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H343,24 64%�[13;24H�[?12l�[?25h�[?25l�[34mo�[m�[24;63H343,25 64%�[13;25H�[?12l�[?25h�[?25l�[34mg�[m�[24;63H343,26 64%�[13;26H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H343,27 64%�[13;27H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,28 64%�[13;28H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H343,29 64%�[13;29H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H343,30 64%�[13;30H�[?12l�[?25h�[?25l�[34ml�[m�[24;63H343,31 64%�[13;31H�[?12l�[?25h�[?25l�[34m �[m�[24;63H343,32 64%�[13;32H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H343,33 64%�[13;33H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H343,34 64%�[13;34H�[?12l�[?25h�[?25l�[34ma�[m�[24;63H343,35 64%�[13;35H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H343,36 64%�[13;36H�[?12l�[?25h�[?25l�[34me�[m�[24;63H343,37 64%�[13;37H�[?12l�[?25h�[?25l�[34mm�[m�[24;63H343,38 64%�[13;38H�[?12l�[?25h�[?25l�[34me�[m�[24;63H343,39 64%�[13;39H�[?12l�[?25h�[?25l�[34mn�[m�[24;63H343,40 64%�[13;40H�[?12l�[?25h�[?25l�[34mt�[m�[24;63H343,41 64%�[13;41H�[?12l�[?25h�[?25l�[34ms�[m�[24;63H343,42 64%�[13;42H�[?12l�[?25h�[24;1H�[K�[13;41H�[?25l�[24;63H343,41 64%�[13;41H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25h �[?25l"postgresql.conf" "postgresql.conf" 531L, 18127C written�[24C343,41 64% "postgresql.conf" 531L, 18127C written�[24;63H�[K�[24;63H343,41 64%�[13;41H�[?12l�[?25h�[?25l�[24;63H342,38 64%�[12;38H�[?12l�[?25h�[?25l�[24;63H342,35 64%�[12;35H�[?12l�[?25h�[?25l�[24;63H342,33 64%�[12;33H�[?12l�[?25h��[?25l�[24;63H343,33 64%�[13;33H�[?12l�[?25h�[?25l�[24;63H344,5-40 64%�[14;40H�[?12l�[?25h�[?25l�[24;63H345,5-40 64%�[15;40H�[?12l�[?25h�[?25l�[24;63H346,5-40 64%�[17;40H�[?12l�[?25h�[?25l�[24;63H347,0-1 64%�[18;1H�[?12l�[?25h�[?25l�[24;63H348,0-1 64%�[19;1H�[?12l�[?25h�[?25l�[24;63H349,17 64%�[20;17H�[?12l�[?25h�[?25l�[24;63H350,0-1 64%�[21;1H�[?12l�[?25h�[?25l�[24;63H351,24 64%�[22;24H�[?12l�[?25h�[?25l�[24;63H352,28 64%�[23;28H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#debug_print_plan = off�[m�[24;1H�[K�[24;63H353,23 65%�[23;23H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#debug_pretty_print = on�[m�[24;63H�[K�[24;63H354,24 65%�[23;24H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_checkpoints = off�[m�[24;63H�[K�[24;63H355,22 65%�[23;22H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_connections = off�[m�[24;63H�[K�[24;63H356,22 65%�[23;22H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_disconnections = off�[m�[24;63H�[K�[24;63H357,25 65%�[23;25H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_duration = off�[m�[24;63H�[K�[24;63H358,19 66%�[23;19H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_error_verbosity = default # terse, default, or verbose messages�[m�[24;63H�[K�[24;63H359,32-40 66%�[23;40H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_hostname = off�[m�[24;63H�[K�[24;63H360,19 66%�[23;19H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m#log_line_prefix = '' # special values:�[m�[24;63H�[K�[24;63H361,24-40 66%�[23;40H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hl�[?25l /l�[?12l�[?25ho�[?25l /lo�[?12l�[?25hg�[?25l /log�[?12l�[?25h_�[?25l /log_�[?12l�[?25hc�[?25l /log_c�[?12l�[?25ho�[?25l /log_co�[?12l�[?25hn�[?25l /log_con�[?12l�[?25hn�[?25l /log_conn�[?12l�[?25he�[?25l /log_conne�[?12l�[?25hc�[?25l /log_connec�[?12l�[?25h �[?25l/log_connec �[31msearch hit BOTTOM, continuing at TOP�[27m�[m�[H�[2J�[1;1H�[34m# The commented-out settings shown in this file represent the default values. # Re-commenting a setting is NOT sufficient to revert it to the default value; # you need to reload the server. # # This file is read on server startup and when the server receives a SIGHUP # signal. If you edit the file on a running system, you have to SIGHUP the # server for the changes to take effect, or use "pg_ctl reload". Some # parameters, which are marked below, require a server shutdown and restart to # take effect. # # Any parameter can also be given as a command-line option to the server, e.g., # "postgres -c �[m�[30m�[43mlog_connec�[m�[34mtions=on". Some parameters can be changed at run time # with the "SET" SQL command. # # Memory units: kB = kilobytes Time units: ms = milliseconds # MB = megabytes s = seconds # GB = gigabytes min = minutes # h = hours # d = days #------------------------------------------------------------------------------ # FILE LOCATIONS�[m�[24;63H24,16 2% �[31msearch hit BOTTOM, continuing at TOP�[m�[24;63H�[K�[24;63H24,16 2%�[12;16H�[?12l�[?25h�[?25l�[24;1H/log_connec�[24;12H�[K�[24;1H�[27m�[m�[H�[2J�[1;41H�[34m# of milliseconds # - What to Log - #debug_print_parse = off #debug_print_rewritten = off #debug_print_plan = off #debug_pretty_print = on #log_checkpoints = off #�[m�[30m�[43mlog_connec�[m�[34mtions = off #log_disconnections = off #log_duration = off #log_error_verbosity = default # terse, default, or verbose messages #log_hostname = off #log_line_prefix = '' # special values:�[17;41H# %a = application name�[18;41H# %u = user name�[19;41H# %d = database name�[20;41H# %r = remote host and port�[21;41H# %h = remote host�[22;41H# %p = process ID�[23;41H# %t = timestamp without milliseconds�[m�[24;63H356,2 67%�[11;2H�[?12l�[?25h�[?25l�[24;63H356,1 67%�[11;1H�[?12l�[?25h�[?25l�[30m�[43mlog_connec�[mtions = off�[11;22H�[K�[11;1H�[?12l�[?25h�[?25l�[24;63H356,17 67%�[11;17H�[?12l�[?25h�[?25l�[24;63H356,19 67%�[11;19H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H356,19 67%�[11;19H�[K�[11;19H�[?12l�[?25h�[?25lo�[24;63H356,20 67%�[11;20H�[?12l�[?25h�[?25ln�[24;63H356,21 67%�[11;21H�[?12l�[?25h�[24;1H�[K�[11;20H�[?25l�[24;63H356,20 67%�[11;20H�[?12l�[?25h�[?25l�[24;63H357,20 67%�[12;20H�[?12l�[?25h�[?25l�[24;63H357,1 67%�[12;1H�[?12l�[?25h�[?25llog_disconnections = off�[12;25H�[K�[12;1H�[?12l�[?25h�[?25l�[24;63H357,20 67%�[12;20H�[?12l�[?25h�[?25l�[24;63H357,22 67%�[12;22H�[?12l�[?25h�[?25l�[24;63H357,23 67%�[12;23H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H357,23 67%�[12;23H�[K�[12;23H�[?12l�[?25h�[?25ln�[24;63H357,24 67%�[12;24H�[?12l�[?25h�[24;1H�[K�[12;23H�[?25l�[24;63H357,23 67%�[12;23H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25hl�[?25l /l�[?12l�[?25ho�[?25l /lo�[?12l�[?25hc�[?25l /loc�[?12l�[?25hk�[?25l /lock�[?12l�[?25h_�[?25l /lock_�[?12l�[?25hw�[?25l /lock_w�[?12l�[?25ha�[?25l /lock_wa�[?12l�[?25hi�[?25l /lock_wai�[?12l�[?25ht�[?25l /lock_wait�[?12l�[?25hs�[?25l /lock_waits�[?12l�[?25h �[?25l/lock_waits �[27m�[m�[H�[2J�[1;41H�[34m# %i = command tag�[2;41H# %e = SQL state�[3;41H# %c = session ID�[4;41H# %l = session line number�[5;41H# %s = session start timestamp�[6;41H# %v = virtual transaction ID�[7;41H# %x = transaction ID (0 if none)�[8;41H# %q = stop here in non-session�[9;41H# processes�[10;41H# %% = '%'�[11;41H# e.g. '<%u%%%d> ' #log_�[m�[30m�[43mlock_waits�[m�[34m = off # log lock waits >= deadlock_timeout #log_statement = 'none' # none, ddl, mod, all #log_temp_files = -1 # log temporary files equal or larger�[15;41H# than the specified size in kilobytes;�[16;41H# -1 disables, 0 logs all temp files #log_timezone = unknown # actually, defaults to TZ environment�[18;41H# setting #------------------------------------------------------------------------------ # RUNTIME STATISTICS #------------------------------------------------------------------------------�[m�[24;63H381,6 72%�[12;6H�[?12l�[?25h�[?25l�[24;63H381,1 72%�[12;1H�[?12l�[?25h�[?25llog_�[30m�[43mlock_waits�[m = off �[?12l�[?25h�[?25l�[24;63H381,16 72%�[12;16H�[?12l�[?25h�[?25l�[24;63H381,18 72%�[12;18H�[?12l�[?25h�[?25l�[24;63H381,19 72%�[12;19H�[?12l�[?25h�[?25lf ���[?12l�[?25h�[?25l �[24;63H381,19-24 72%�[12;24H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H381,19 72%�[12;19H�[?12l�[?25h�[?25ln�[24;63H381,20 72%�[12;20H�[?12l�[?25h�[24;1H�[K�[12;19H�[?25l�[24;63H381,19 72%�[12;19H�[?12l�[?25h�[?25l�[24;63H382,19 72%�[13;19H�[?12l�[?25h�[?25l�[24;63H382,1 72%�[13;1H�[?12l�[?25h�[?25llog_statement = �[31m'none'�[m �[?12l�[?25h�[?25l�[24;63H382,15 72%�[13;15H�[?12l�[?25h�[?25l�[24;63H382,17 72%�[13;17H�[?12l�[?25h�[?25l�[24;63H382,18 72%�[13;18H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H382,18 72%�[13;18H�[31m'�[m ������[?12l�[?25h�[?25l�[31md'�[m�[24;63H382,19 72%�[13;19H�[?12l�[?25h�[?25l�[31md'�[m�[24;63H382,20 72%�[13;20H�[?12l�[?25h�[?25l�[31ml'�[m�[24;63H382,21 72%�[13;21H�[?12l�[?25h�[24;1H�[K�[13;20H�[?25l�[24;63H382,20 72%�[13;20H�[?12l�[?25h�[?25l�[24;63H383,20 72%�[14;20H�[?12l�[?25h�[?25l�[24;63H383,1 72%�[14;1H�[?12l�[?25h�[?25llog_temp_files = -1 �[?12l�[?25h�[?25l�[24;63H383,16 72%�[14;16H�[?12l�[?25h�[?25l�[24;63H383,18 72%�[14;18H�[?12l�[?25h�[?25l1 ���[?12l�[?25h�[?25l �[24;63H383,18-24 72%�[14;24H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H383,18 72%�[14;18H�[?12l�[?25h�[?25l1�[24;63H383,19 72%�[14;19H�[?12l�[?25h�[?25lk�[24;63H383,20 72%�[14;20H�[?12l�[?25h�[?25lB�[24;63H383,21 72%�[14;21H�[?12l�[?25h�[24;1H�[K�[14;20H�[?25l�[24;63H383,20 72%�[14;20H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H/�[?12l�[?25ha�[?25l /a�[?12l�[?25hu�[?25l /au�[?12l�[?25ht�[?25l /aut�[?12l�[?25ho�[?25l /auto�[?12l�[?25hv�[?25l /autov�[?12l�[?25ha�[?25l /autova�[?12l�[?25hc�[?25l /autovac�[?12l�[?25h �[?25l/autovac �[27m�[m�[H�[2J�[2;1H�[34m#log_parser_stats = off #log_planner_stats = off #log_executor_stats = off #log_statement_stats = off #------------------------------------------------------------------------------ # AUTOVACUUM PARAMETERS #------------------------------------------------------------------------------ #�[m�[30m�[43mautovac�[m�[34muum = on # Enable �[m�[30m�[43mautovac�[m�[34muum subprocess? 'on' �[13;41H# requires track_counts to also be on. #log_�[m�[30m�[43mautovac�[m�[34muum_min_duration = -1 # -1 disables, 0 logs all actions and�[15;41H# their durations, > 0 logs only�[16;41H# actions running at least this number�[17;41H# of milliseconds. #�[m�[30m�[43mautovac�[m�[34muum_max_workers = 3 # max number of �[m�[30m�[43mautovac�[m�[34muum subprocesses�[19;41H# (change requires restart) #�[m�[30m�[43mautovac�[m�[34muum_naptime = 1min # time between �[m�[30m�[43mautovac�[m�[34muum runs #�[m�[30m�[43mautovac�[m�[34muum_vacuum_threshold = 50 # min number of row updates before�[22;41H# vacuum #�[m�[30m�[43mautovac�[m�[34muum_analyze_threshold = 50 # min number of row updates before �[m�[24;63H416,2 79%�[12;2H�[?12l�[?25h�[?25l�[24;63H416,1 79%�[12;1H�[?12l�[?25h�[?25l�[30m�[43mautovac�[muum = on �[34m# Enable �[m�[30m�[43mautovac�[m�[34muum subprocess? 'on' �[m�[12;71H�[K�[12;1H�[?12l�[?25h�[?25l�[24;63H417,1-8 79%�[13;8H�[?12l�[?25h�[?25l�[24;63H418,1 79%�[14;1H�[?12l�[?25h�[?25llog_�[30m�[43mautovac�[muum_min_duration = -1 �[?12l�[?25h�[?25l�[24;63H418,29 79%�[14;29H�[?12l�[?25h�[?25l�[24;63H418,31 79%�[14;31H�[?12l�[?25h�[?25l1 �[34m# -1 disables, 0 logs all actions and�[m�[14;70H�[K�[14;31H�[?12l�[?25h�[?25l �[24;63H418,31-32 79%�[14;32H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H418,31 79%�[14;31H�[?12l�[?25h�[?25l0�[24;63H418,32 79%�[14;32H�[?12l�[?25h�[?25l �[34m# -1 disables, 0 logs all actions and�[m�[24;63H418,33 79%�[14;33H�[?12l�[?25h�[24;1H�[K�[14;32H�[?25l�[24;63H418,32 79%�[14;32H�[?12l�[?25h�[?25l�[24;63H419,4-32 79%�[15;32H�[?12l�[?25h�[?25l�[24;63H420,4-32 79%�[16;32H�[?12l�[?25h�[?25l�[24;63H421,4-32 79%�[17;32H�[?12l�[?25h�[?25l�[24;63H422,28-32 79%�[18;32H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"postgresql.conf" "postgresql.conf" 531L, 18117C written �[1m�[37m�[41mE138: Can't write viminfo file /root/.viminfo!�[m �[32mPress ENTER or type command to continue�[?12l�[?25h �[m�[?1l�>�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:8B:00:02 inet addr:209.126.178.77 Bcast:209.126.178.255 Mask:255.255.255.192 inet6 addr: fe80::250:56ff:fe8b:2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25928 errors:0 dropped:0 overruns:0 frame:0 TX packets:19669 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17926881 (17.0 MiB) TX bytes:1576619 (1.5 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:232 errors:0 dropped:0 overruns:0 frame:0 TX packets:232 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:80481 (78.5 KiB) TX bytes:80481 (78.5 KiB) �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# cat pg_h�ba.conf # TYPE DATABASE USER CIDR-ADDRESS METHOD local all postgres md5 host all postgres 127.0.0.1/32 md5 host postgres eas_dbo 127.0.0.1/32 md5 host eas_dev eas_dbo 127.0.0.1/32 md5 host eas_qa eas_dbo 127.0.0.1/32 md5 host eas_prod eas_dbo 127.0.0.1/32 md5 host postgres sfmaps_dbo 127.0.0.1/32 md5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32 md5 host sfmaps_qa sfmaps_dbo 127.0.0.1/32 md5 host sfmaps_prod sfmaps_dbo 127.0.0.1/32 md5 host sfmaps_dev postgres 127.0.0.1/32 md5 host eas_qa postgres 127.0.0.1/32 md5 host sfmaps_qa postgres 127.0.0.1/32 md5 host eas_prod postgres 127.0.0.1/32 md5 host sfmaps_prod postgres 127.0.0.1/32 md5 # dbo - ssh - tunnel host eas_dev eas_dbo 127.0.0.1/32 md5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32 md5 host eas_qa eas_dbo 127.0.0.1/32 md5 host sfmaps_qa sfmaps_dbo 127.0.0.1/32 md5 host eas_prod eas_dbo 127.0.0.1/32 md5 host sfmaps_prod sfmaps_dbo 127.0.0.1/32 md5 # etl - ssh - tunnel host eas_dev etl 127.0.0.1/32 md5 host sfmaps_dev etl 127.0.0.1/32 md5 host eas_qa etl 127.0.0.1/32 md5 host sfmaps_qa etl 127.0.0.1/32 md5 host eas_prod etl 127.0.0.1/32 md5 host sfmaps_prod etl 127.0.0.1/32 md5 # SF DEV host eas_dev django 127.0.0.1/32 md5 # developer desktop host eas_dev django 10.250.60.189/32 md5 host eas_dev geoserver 10.250.60.191/32 md5 host sfmaps_dev geoserver 10.250.60.191/32 md5 # SF QA host eas_qa django 10.250.60.192/32 md5 host eas_qa geoserver 10.250.60.194/32 md5 host sfmaps_qa geoserver 10.250.60.194/32 md5 # SF PROD host eas_prod django 10.250.60.195/32 md5 host eas_prod geoserver 10.250.60.197/32 md5 host sfmaps_prod geoserver 10.250.60.197/32 md5 # SD DEV host eas_dev django 209.126.178.81/32 md5 host eas_dev geoserver 209.126.178.83/32 md5 host sfmaps_dev geoserver 209.126.178.83/32 md5 # SD QA host eas_qa django 209.126.178.71/32 md5 host eas_qa geoserver 209.126.178.73/32 md5 host sfmaps_qa geoserver 209.126.178.73/32 md5 # SD PROD host eas_prod django 209.126.178.76/32 md5 host eas_prod geoserver 209.126.178.78/32 md5 host sfmaps_prod geoserver 209.126.178.78/32 md5 �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# vim �����[Kls -l �[00mtotal 180 drwx------ 5 postgres postgres 4096 Jul 7 11:12 �[00;34mbase�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:15 �[00;34mglobal�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_clog�[00m -rw------- 1 postgres postgres 2710 Jul 7 11:50 �[00mpg_hba.conf�[00m -rw------- 1 postgres postgres 3939 Jul 7 11:12 �[00mpg_hba.conf.orig�[00m -rw------- 1 postgres postgres 1636 Jul 7 11:12 �[00mpg_ident.conf�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:14 �[00;34mpg_log�[00m drwx------ 4 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_multixact�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:14 �[00;34mpg_notify�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:49 �[00;34mpg_stat_tmp�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_subtrans�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_tblspc�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_twophase�[00m -rw------- 1 postgres postgres 4 Jul 7 11:12 �[00mPG_VERSION�[00m lrwxrwxrwx 1 postgres postgres 20 Jul 7 11:12 �[00;36mpg_xlog�[00m -> �[00;34m/pg_xlog/9.0/pg_xlog�[00m -rw------- 1 postgres postgres 18117 Jul 7 11:47 �[00mpostgresql.conf�[00m -rw------- 1 postgres postgres 17948 Jul 7 11:12 �[00mpostgresql.conf.orig�[00m -rw------- 1 postgres postgres 62 Jul 7 11:14 �[00mpostmaster.opts�[00m -rw------- 1 postgres postgres 40 Jul 7 11:14 �[00mpostmaster.pid�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# vim pg�_h�ba.conf �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"pg_hba.conf" "pg_hba.conf" 61L, 2710C�[>c�[1;1H�[34m# TYPE DATABASE USER CIDR-ADDRESS METHOD�[m local all�[9Cpostgres�[23Cmd5 host all�[9Cpostgres 127.0.0.1/32�[7Cmd5 host postgres eas_dbo 127.0.0.1/32�[7Cmd5 host eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host eas_qa eas_dbo 127.0.0.1/32�[7Cmd5 host eas_prod eas_dbo 127.0.0.1/32�[7Cmd5 host postgres sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_qa sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_prod sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev postgres 127.0.0.1/32�[7Cmd5 host eas_qa postgres 127.0.0.1/32�[7Cmd5 host sfmaps_qa postgres 127.0.0.1/32�[7Cmd5 host eas_prod postgres 127.0.0.1/32�[7Cmd5 host sfmaps_prod postgres 127.0.0.1/32�[7Cmd5 �[34m# dbo - ssh - tunnel�[m host eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5�[24;63H1,1 Top�[1;1H�[?12l�[?25h�[?25l�[24;63H2,1 Top�[2;1H�[?12l�[?25h�[?25l�[24;63H3,1 Top�[3;1H�[?12l�[?25h�[?25l�[24;63H4,0-1 Top�[4;1H�[?12l�[?25h�[?25l�[24;63H5,1 Top�[5;1H�[?12l�[?25h�[?25l�[24;63H6,1 Top�[6;1H�[?12l�[?25h�[?25l�[27m�[m�[H�[2J�[27m�[m�[H�[2J�[1;1Hhost eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5 host eas_qa eas_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_qa sfmaps_dbo 127.0.0.1/32�[7Cmd5 host eas_prod eas_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_prod sfmaps_dbo 127.0.0.1/32�[7Cmd5 �[34m# etl - ssh - tunnel�[m host eas_dev etl�[9C127.0.0.1/32�[7Cmd5 host sfmaps_dev etl�[9C127.0.0.1/32�[7Cmd5 host eas_qa etl�[9C127.0.0.1/32�[7Cmd5 host sfmaps_qa etl�[9C127.0.0.1/32�[7Cmd5 host eas_prod etl�[9C127.0.0.1/32�[7Cmd5 host sfmaps_prod etl�[9C127.0.0.1/32�[7Cmd5 �[34m# SF DEV�[m host eas_dev django 127.0.0.1/32�[7Cmd5 �[34m# developer desktop�[m host eas_dev django 10.250.60.189/32 md5 host eas_dev geoserver 10.250.60.191/32 md5 host sfmaps_dev geoserver 10.250.60.191/32 md5 �[34m# SF QA�[m host eas_qa django 10.250.60.192/32 md5 host eas_qa geoserver 10.250.60.194/32 md5�[24;63H22,1 55%�[1;1H�[?12l�[?25h�[?25l�[12Cqa django 10.250.60.192/32�[2;9Heas_qa geoserver 10.250.60.194/32�[3;9Hsfmaps_qa geoserver 10.250.60.194/32 �[34m# SF PROD�[m�[4;10H�[K�[5;21Hdjango 10.250.60.195/32�[6;9Heas_prod geoserver 10.250.60.197/32 host sfmaps_prod geoserver 10.250.60.197/32 md5�[8;3H�[34mSD DEV�[m�[8;9H�[K�[9;21Hdjango 209.126.178.81/32�[10;9Heas_dev geoserver 209.126.178.83/32�[11;9Hsfmaps_dev geoserver 209.126.178.83/32 �[34m# SD QA�[m�[12;9H�[K�[13;13Hqa django 209.126.178.71/32�[14;9Heas_qa geoserver 209.126.178.73/32 host sfmaps_qa geoserver 209.126.178.73/32 md5�[16;4H�[34mD PROD�[m�[17;13Hprod�[16C209.126.178.76/32�[17;56H�[K�[18;13Hprod geoserver 209.126.178.78/32�[19;9Hsfmaps_prod�[13C209.126.178.78/32 �[1m�[34m~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H43,1 Bot�[1;1H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hq�[?25l :q�[?12l�[?25h �[?25l�[24;1H�[K�[24;1H�[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# /etc/init.d/postgresql-9.0 restart Stopping postgresql-9.0 service: �[60G[�[0;32m OK �[0;39m] Starting postgresql-9.0 service: �[60G[�[0;31mFAILED�[0;39m] �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# less /var/log/p�gsql ���[K��[K��[K��[K��[Kgsql �[?1049h�[?1h�= �[K�[7m/var/log/pgsql (END) �[27m�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# less /var/log/pgsql ��[K��[K��[K��[K��[K��[K��[K��[K��[Kib/pgsql/pg�s�����[K��[K��[Kd�a�����[K��[K� 9.0/ .bash_profile [root@prod-db data]# less /var/lib/pgsql/9.0/� backups/ data/ pgstartup.log [root@prod-db data]# less /var/lib/pgsql/9.0/pgstartup.log �[?1049h�[?1h�= FATAL: could not create log file "/var/log/pg_log/postgresql-Thu.log": No such �file or directory �[7m/var/lib/pgsql/9.0/pgstartup.log (END) �[27m�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# mkdir -p /var/log/pg_log �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chwn��[Ko��[K��[Kown ps��[Kostgres.postgres /var/log/pg_log �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chown postgres.postgres /var/log/pg_log �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[15Pmkdir -p�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cless /var/lib/pgsql/9.0/pgstartup.log ����������������������������[18Pog/pgsql�[C��������������������/etc/init.d/postgresql-9.0 restart��������[Kstart Starting postgresql-9.0 service: �[60G[�[0;32m OK �[0;39m] �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# psql -l -U postgres Password for user postgres: psql: fe_sendauth: no password supplied �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# su - postgres -bash-3.2$ psql -l Password: psql: fe_sendauth: no password supplied -bash-3.2$ cat /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename # Useful for debugging multi-threaded applications kernel.core_uses_pid = 1 # Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 # Controls the maximum size of a message, in bytes kernel.msgmnb = 65536 # Controls the default maxmimum size of a mesage queue kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes kernel.shmmax = 68719476736 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 -bash-3.2$ cat /etc/sysctl.conf �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Kcd /data/9.0/data/ -bash-3.2$ ls -l �[00mtotal 180 drwx------ 5 postgres postgres 4096 Jul 7 11:12 �[00;34mbase�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:53 �[00;34mglobal�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_clog�[00m -rw------- 1 postgres postgres 2710 Jul 7 11:50 �[00mpg_hba.conf�[00m -rw------- 1 postgres postgres 3939 Jul 7 11:12 �[00mpg_hba.conf.orig�[00m -rw------- 1 postgres postgres 1636 Jul 7 11:12 �[00mpg_ident.conf�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:14 �[00;34mpg_log�[00m drwx------ 4 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_multixact�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:52 �[00;34mpg_notify�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:53 �[00;34mpg_stat_tmp�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_subtrans�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_tblspc�[00m drwx------ 2 postgres postgres 4096 Jul 7 11:12 �[00;34mpg_twophase�[00m -rw------- 1 postgres postgres 4 Jul 7 11:12 �[00mPG_VERSION�[00m lrwxrwxrwx 1 postgres postgres 20 Jul 7 11:12 �[00;36mpg_xlog�[00m -> �[00;34m/pg_xlog/9.0/pg_xlog�[00m -rw------- 1 postgres postgres 18117 Jul 7 11:47 �[00mpostgresql.conf�[00m -rw------- 1 postgres postgres 17948 Jul 7 11:12 �[00mpostgresql.conf.orig�[00m -rw------- 1 postgres postgres 62 Jul 7 11:52 �[00mpostmaster.opts�[00m -rw------- 1 postgres postgres 40 Jul 7 11:52 �[00mpostmaster.pid�[00m �[m-bash-3.2$ vim pg_h�ba.conf �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"pg_hba.conf" "pg_hba.conf" 61L, 2710C�[>c�[1;1H�[34m# TYPE DATABASE USER CIDR-ADDRESS METHOD�[m local all�[9Cpostgres�[23Cmd5 host all�[9Cpostgres 127.0.0.1/32�[7Cmd5 host postgres eas_dbo 127.0.0.1/32�[7Cmd5 host eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host eas_qa eas_dbo 127.0.0.1/32�[7Cmd5 host eas_prod eas_dbo 127.0.0.1/32�[7Cmd5 host postgres sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_qa sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_prod sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev postgres 127.0.0.1/32�[7Cmd5 host eas_qa postgres 127.0.0.1/32�[7Cmd5 host sfmaps_qa postgres 127.0.0.1/32�[7Cmd5 host eas_prod postgres 127.0.0.1/32�[7Cmd5 host sfmaps_prod postgres 127.0.0.1/32�[7Cmd5 �[34m# dbo - ssh - tunnel�[m host eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5�[24;63H1,1 Top�[1;1H�[?12l�[?25h�[?25l�[24;63H2,1 Top�[2;1H�[?12l�[?25h�[?25l�[24;63H2,54 Top�[2;54H�[?12l�[?25h�[?25l�[24;63H2,52 Top�[2;52H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;13H�[K�[24;63H2,52 Top�[2;52H�[K�[2;52H�[?12l�[?25h�[?25lt�[24;63H2,53 Top�[2;53H�[?12l�[?25h�[?25lr�[24;63H2,54 Top�[2;54H�[?12l�[?25h�[?25lu�[24;63H2,55 Top�[2;55H�[?12l�[?25h�[?25ls�[24;63H2,56 Top�[2;56H�[?12l�[?25h�[?25lt�[24;63H2,57 Top�[2;57H�[?12l�[?25h�[24;1H�[K�[2;56H�[?25l�[24;63H2,56 Top�[2;56H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"pg_hba.conf" "pg_hba.conf" 61L, 2712C written �[?1l�>�[?12l�[?25h�[?1049l-bash-3.2$ /etc/init.d/�������������[Klogout �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# /etc/init.d/postgresql-9.0 reload �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# psql -U postgres -l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -----------+----------+----------+------------+------------+-------------------- --- postgres | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es template1 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es (3 rows) �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# mkpa�s���������[K/s��[Kus��[K��[Ksbin/mkp�������������[Kpsql -U postgres -l���[K psql (9.0.4) Type "help" for help. postgres=# alt���ALTER ro��ROLE postgres password 'tlane1'; ALTER ROLE postgres=# \q �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# vim /etc���������[K �[1@(reverse-i-search)`':�[C���v': chown postgres.postgres /var/log/pg_log�������������� �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[23Pi': vim pg_hba.conf�������������������[1@m�[C�[C�[C �[4P[root@prod-db data]#�[C �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"pg_hba.conf" "pg_hba.conf" 61L, 2712C�[>c�[1;1Hhost eas_qa etl�[9C127.0.0.1/32�[7Cmd5 host sfmaps_qa etl�[9C127.0.0.1/32�[7Cmd5 host eas_prod etl�[9C127.0.0.1/32�[7Cmd5 host sfmaps_prod etl�[9C127.0.0.1/32�[7Cmd5 �[34m# SF DEV�[m host eas_dev django 127.0.0.1/32�[7Cmd5 �[34m# developer desktop�[m host eas_dev django 10.250.60.189/32 md5 host eas_dev geoserver 10.250.60.191/32 md5 host sfmaps_dev geoserver 10.250.60.191/32 md5 �[34m# SF QA�[m host eas_qa django 10.250.60.192/32 md5 host eas_qa geoserver 10.250.60.194/32 md5 host sfmaps_qa geoserver 10.250.60.194/32 md5 �[34m# SF PROD�[m host eas_prod django 10.250.60.195/32 md5 host eas_prod geoserver 10.250.60.197/32 md5 host sfmaps_prod geoserver 10.250.60.197/32 md5 �[34m# SD DEV�[m host eas_dev django 209.126.178.81/32 md5 host eas_dev geoserver 209.126.178.83/32 md5 host sfmaps_dev geoserver 209.126.178.83/32 md5 �[34m# SD QA�[m�[24;63H43,1 81%�[12;1H�[?12l�[?25h�[?25l�[27m�[m�[H�[2J�[1;1H�[34m# TYPE DATABASE USER CIDR-ADDRESS METHOD�[m local all�[9Cpostgres�[23Ctrust host all�[9Cpostgres 127.0.0.1/32�[7Cmd5 host postgres eas_dbo 127.0.0.1/32�[7Cmd5 host eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host eas_qa eas_dbo 127.0.0.1/32�[7Cmd5 host eas_prod eas_dbo 127.0.0.1/32�[7Cmd5 host postgres sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_qa sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_prod sfmaps_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev postgres 127.0.0.1/32�[7Cmd5 host eas_qa postgres 127.0.0.1/32�[7Cmd5 host sfmaps_qa postgres 127.0.0.1/32�[7Cmd5 host eas_prod postgres 127.0.0.1/32�[7Cmd5 host sfmaps_prod postgres 127.0.0.1/32�[7Cmd5 �[34m# dbo - ssh - tunnel�[m host eas_dev eas_dbo 127.0.0.1/32�[7Cmd5 host sfmaps_dev sfmaps_dbo 127.0.0.1/32�[7Cmd5�[24;63H1,1 Top�[1;1H�[?12l�[?25h�[?25l�[24;63H2,1 Top�[2;1H�[?12l�[?25h�[?25l�[24;63H2,56 Top�[2;56H�[?12l�[?25h�[?25l�[24;63H2,52 Top�[2;52H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;63H�[K�[24;63H2,52 Top�[2;52H�[K�[2;52H�[?12l�[?25h�[?25lm�[24;63H2,53 Top�[2;53H�[?12l�[?25h�[?25ld�[24;63H2,54 Top�[2;54H�[?12l�[?25h�[?25l5�[24;63H2,55 Top�[2;55H�[?12l�[?25h�[24;1H�[K�[2;54H�[?25l�[24;63H2,54 Top�[2;54H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"pg_hba.conf" "pg_hba.conf" 61L, 2710C written �[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# �[1@(reverse-i-search)`':�[C����[18@r': psql -U postgres��������������������[1@e�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C����������������l': /etc/init.d/postgresql-9.0 reload������ �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[1@o�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �[5P[root@prod-db data]#�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# psql -l U post��[K��[K��[K��[K��[K��[K-U postgres ���������������������[Kvim postg�resql.conf �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"postgresql.conf" "postgresql.conf" 531L, 18117C�[>c�[1;1H�[34m# ----------------------------- # PostgreSQL configuration file # ----------------------------- # # This file consists of lines of the form: # # name = value # # (The "=" is optional.) Whitespace may be used. Comments are introduced with # "#" anywhere on a line. The complete list of parameter names and allowed # values can be found in the PostgreSQL documentation. # # The commented-out settings shown in this file represent the default values. # Re-commenting a setting is NOT sufficient to revert it to the default value; # you need to reload the server. # # This file is read on server startup and when the server receives a SIGHUP # signal. If you edit the file on a running system, you have to SIGHUP the # server for the changes to take effect, or use "pg_ctl reload". Some # parameters, which are marked below, require a server shutdown and restart to # take effect. # # Any parameter can also be given as a command-line option to the server, e.g.,�[m�[24;63H1,1 Top�[1;1H�[?12l�[?25h�[?25l�[24;1H�[K�[24;1H/�[?12l�[?25hr�[?25l /r�[?12l�[?25he�[?25l /re�[?12l�[?25hs�[?25l /res�[?12l�[?25ht�[?25l /rest�[?12l�[?25ha�[?25l /resta�[?12l�[?25hr�[?25l /restar�[?12l�[?25ht�[?25l /restart�[?12l�[?25h �[?25l/restart �[20;69H�[30m�[43mrestart�[m�[24;63H20,69 Top�[20;69H�[?12l�[?25h�[?25l�[24;1H/restart�[24;63H�[K�[24;1H�[27m�[m�[H�[2J�[1;1H�[34m# d = days #------------------------------------------------------------------------------ # FILE LOCATIONS #------------------------------------------------------------------------------ # The default values of these variables are driven from the -D command-line # option or PGDATA environment variable, represented here as ConfigDir. #data_directory = 'ConfigDir' # use data in another directory�[12;41H# (change requires �[m�[30m�[43mrestart�[m�[34m) #hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file�[14;41H# (change requires �[m�[30m�[43mrestart�[m�[34m) #ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file�[16;41H# (change requires �[m�[30m�[43mrestart�[m�[34m) # If external_pid_file is not explicitly set, no extra PID file is written. #external_pid_file = '(none)' # write an extra PID file�[20;41H# (change requires �[m�[30m�[43mrestart�[m�[34m) #------------------------------------------------------------------------------�[m�[24;63H42,25-60 5%�[12;60H�[?12l�[?25h�[?25l�[24;1H/restart�[24;63H�[K�[24;1H�[62C44,25-60 5%�[14;60H�[?12l�[?25h�[?25l�[24;1H/restart�[24;63H�[K�[24;1H�[62C46,25-60 5%�[16;60H�[?12l�[?25h�[?25l�[24;1H/restart�[24;63H�[K�[24;1H�[62C50,25-60 5%�[20;60H�[?12l�[?25h�[?25l�[24;1H/restart�[24;63H�[K�[24;1H�[1;23r�[1;1H�[9M�[1;24r�[15;1H�[34m# CONNECTIONS AND AUTHENTICATION #------------------------------------------------------------------------------ # - Connection Settings -�[m listen_addresses = �[31m'*'�[m�[10C�[34m# what IP address(es) to listen on;�[21;41H# comma-separated list of addresses;�[22;41H# defaults to 'localhost', '*' = all�[23;41H# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H62,25-60 7%�[23;60H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hport = 5432�[29C�[34m# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;63H�[K�[24;63H63,35-60 7%�[23;60H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1Hmax_connections = 100�[19C�[34m# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;63H�[K�[24;63H64,44-60 8%�[23;60H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# Note: Increasing max_connections costs ~400 bytes of shared memory per �[m�[24;63H�[K�[24;63H65,60 8%�[23;60H�[?12l�[?25h�[?25l�[1;23r�[23;1H �[1;24r�[23;1H�[34m# connection slot, plus lock space (see max_locks_per_transaction).�[m�[24;63H�[K�[24;63H66,60 8%�[23;60H�[?12l�[?25h�[?25l�[24;63H65,60 8%�[22;60H�[?12l�[?25h�[?25l�[24;63H64,44-60 8%�[21;60H�[?12l�[?25h�[?25l�[24;63H63,35-60 8%�[20;60H�[?12l�[?25h�[?25l�[24;63H64,44-60 8%�[21;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[23;1H �[1;24r�[23;1H�[34m#superuser_reserved_connections = 3 # (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H67,56-60 8%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[23;1H �[1;24r�[23;1H�[34m#unix_socket_directory = '' # (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H68,49-60 8%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[23;1H �[1;24r�[23;1H�[34m#unix_socket_group = '' # (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H69,46-60 9%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[1;1H�[2M�[1;24r�[22;1H�[34m#unix_socket_permissions = 0777 # begin with 0 to use octal notation�[23;41H# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H71,25-60 9%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[1;1H�[2M�[1;24r�[22;1H�[34m#bonjour = off # advertise server via Bonjour�[23;41H# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H73,25-60 9%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[1;1H�[2M�[1;24r�[22;1H�[34m#bonjour_name = '' # defaults to the computer name�[23;41H# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H75,25-60 10%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[1;1H�[5M�[1;24r�[20;1H�[34m# - Security and Authentication - #authentication_timeout = 1min # 1s-600s #ssl = off # (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H80,34-60 11%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[1;23r�[1;1H�[2M�[1;24r�[22;1H�[34m#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers�[23;41H# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m�[24;1H�[K�[24;63H82,25-60 11%�[23;60H�[?12l�[?25h�[?25l /restart�[24;63H�[K�[24;1H�[27m�[m�[H�[2J�[1;41H�[34m# 0 selects the system default #------------------------------------------------------------------------------ # RESOURCE USAGE (except WAL) #------------------------------------------------------------------------------ # - Memory -�[m shared_buffers = 2GB �[34m# PROD - assuming total memory of PROD DB VM is 8GB�[11;22H# I.E. 25% of RAM is a good ballpark�[12;41H# (change requires �[m�[30m�[43mrestart�[m�[34m)�[m temp_buffers = 32MB�[21C�[34m# min 800kB #max_prepared_transactions = 0 # zero disables the feature�[15;41H# (change requires �[m�[30m�[43mrestart�[m�[34m) # Note: Increasing max_prepared_transactions costs ~600 bytes of shared memory # per transaction slot, plus lock space (see max_locks_per_transaction). # It is not advisable to set max_prepared_transactions nonzero unless you # actively intend to use prepared transactions.�[m work_mem = 32MB�[25C�[34m# min 64kB�[m maintenance_work_mem = 128MB�[12C�[34m# min 1MB #max_stack_depth = 2MB # min 100kB�[m�[24;63H111,25-60 19%�[12;60H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hq�[?25l :q�[?12l�[?25h �[?25l�[24;1H�[K�[24;1H�[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# less /var/log/p�g� pg_log/ pgsql [root@prod-db data]# less /var/log/pg pg_log/ pgsql [root@prod-db data]# less /var/log/pg_log/�postgresql-Thu. /var/log/pg_log/postgresql-Thu.: No such file or directory �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# less /var/log/pg_log/postgresql-Thu.csv �[?1049h�[?1h�= 2011-07-07 11:52:27.233 PDT,,,5502,,4e16006b.157e,1,,2011-07-07 11:52:27 PDT,,0, �LOG,00000,"database system was shut down at 2011-07-07 11:51:29 PDT",,,,,,,,,"" 2011-07-07 11:52:27.239 PDT,,,5505,,4e16006b.1581,1,,2011-07-07 11:52:27 PDT,,0, �LOG,00000,"autovacuum launcher started",,,,,,,,,"" 2011-07-07 11:52:27.240 PDT,,,5499,,4e16006a.157b,1,,2011-07-07 11:52:26 PDT,,0, �LOG,00000,"database system is ready to accept connections",,,,,,,,,"" 2011-07-07 11:52:33.738 PDT,,,5511,"",4e160071.1587,1,"",2011-07-07 11:52:33 PDT �,,0,LOG,00000,"connection received: host=[local]",,,,,,,,,"" 2011-07-07 11:52:34.788 PDT,,,5512,"",4e160072.1588,1,"",2011-07-07 11:52:34 PDT �,,0,LOG,00000,"connection received: host=[local]",,,,,,,,,"" 2011-07-07 11:52:36.703 PDT,,,5513,"",4e160074.1589,1,"",2011-07-07 11:52:36 PDT �,,0,LOG,00000,"connection received: host=209.126.178.78 port=40753",,,,,,,,,"" 2011-07-07 11:52:36.717 PDT,"postgres","sfmaps_prod",5513,"209.126.178.78:40753" �,4e160074.1589,2,"authentication",2011-07-07 11:52:36 PDT,2/3,0,FATAL,28000,"no �pg_hba.conf entry for host ""209.126.178.78"", user ""postgres"", database ""sfm �aps_prod"", SSL off",,,,,,,,,"" 2011-07-07 11:52:37.128 PDT,,,5514,"",4e160075.158a,1,"",2011-07-07 11:52:37 PDT �,,0,LOG,00000,"connection received: host=209.126.178.78 port=40754",,,,,,,,,"" 2011-07-07 11:52:37.129 PDT,"postgres","eas_prod",5514,"209.126.178.78:40754",4e �160075.158a,2,"authentication",2011-07-07 11:52:37 PDT,2/4,0,FATAL,28000,"no pg_ �hba.conf entry for host ""209.126.178.78"", user ""postgres"", database ""eas_pr �od"", SSL off",,,,,,,,,"" 2011-07-07 11:52:41.408 PDT,,,5552,"",4e160079.15b0,1,"",2011-07-07 11:52:41 PDT ��[7m/var/log/pg_log/postgresql-Thu.csv �[27m�[K �[K...skipping... ,,0,LOG,00000,"connection received: host=209.126.178.78 port=42318",,,,,,,,,"" 2011-07-07 11:58:56.823 PDT,"postgres","sfmaps_prod",5745,"209.126.178.78:42318" �,4e1601f0.1671,2,"authentication",2011-07-07 11:58:56 PDT,2/90,0,FATAL,28000,"no � pg_hba.conf entry for host ""209.126.178.78"", user ""postgres"", database ""sf �maps_prod"", SSL off",,,,,,,,,"" 2011-07-07 11:58:57.202 PDT,,,5746,"",4e1601f1.1672,1,"",2011-07-07 11:58:57 PDT �,,0,LOG,00000,"connection received: host=209.126.178.78 port=42319",,,,,,,,,"" 2011-07-07 11:58:57.203 PDT,"postgres","eas_prod",5746,"209.126.178.78:42319",4e �1601f1.1672,2,"authentication",2011-07-07 11:58:57 PDT,2/91,0,FATAL,28000,"no pg �_hba.conf entry for host ""209.126.178.78"", user ""postgres"", database ""eas_p �rod"", SSL off",,,,,,,,,"" 2011-07-07 11:59:06.824 PDT,,,5749,"",4e1601fa.1675,1,"",2011-07-07 11:59:06 PDT �,,0,LOG,00000,"connection received: host=209.126.178.78 port=42320",,,,,,,,,"" 2011-07-07 11:59:06.824 PDT,"postgres","sfmaps_prod",5749,"209.126.178.78:42320" �,4e1601fa.1675,2,"authentication",2011-07-07 11:59:06 PDT,2/92,0,FATAL,28000,"no � pg_hba.conf entry for host ""209.126.178.78"", user ""postgres"", database ""sf �maps_prod"", SSL off",,,,,,,,,"" 2011-07-07 11:59:07.204 PDT,,,5750,"",4e1601fb.1676,1,"",2011-07-07 11:59:07 PDT �,,0,LOG,00000,"connection received: host=209.126.178.78 port=42321",,,,,,,,,"" 2011-07-07 11:59:07.204 PDT,"postgres","eas_prod",5750,"209.126.178.78:42321",4e �1601fb.1676,2,"authentication",2011-07-07 11:59:07 PDT,2/93,0,FATAL,28000,"no pg �_hba.conf entry for host ""209.126.178.78"", user ""postgres"", database ""eas_p �rod"", SSL off",,,,,,,,,"" �[7m(END) �[27m�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chkconfig postgres���������[K--list postgresql-9.0 postgresql-9.0 0:off 1:off 2:off 3:off 4:off 5:off 6:off �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chkconfig --list postgresql-9.0����������������������[6P postgresql-9.0����������������[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C on �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chkconfig postgresql-9.0 on������������������--list postgresql-9.0 postgresql-9.0 0:off 1:off 2:on 3:on 4:on 5:on 6:off �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# cat /etc/ini�ttab # # inittab This file describes how the INIT process should set up # the system in a certain run-level. # # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org> # Modified for RHS Linux by Marc Ewing and Donnie Barnes # # Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:3:initdefault: # System initialization. si::sysinit:/etc/rc.d/rc.sysinit l0:0:wait:/etc/rc.d/rc 0 l1:1:wait:/etc/rc.d/rc 1 l2:2:wait:/etc/rc.d/rc 2 l3:3:wait:/etc/rc.d/rc 3 l4:4:wait:/etc/rc.d/rc 4 l5:5:wait:/etc/rc.d/rc 5 l6:6:wait:/etc/rc.d/rc 6 # Trap CTRL-ALT-DELETE ca::ctrlaltdel:/sbin/shutdown -t3 -r now # When our UPS tells us power has failed, assume we have a few minutes # of power left. Schedule a shutdown for 2 minutes from now. # This does, of course, assume you have powerd installed and your # UPS connected and working correctly. pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down" # If power was restored before the shutdown kicked in, cancel it. pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled" # Run gettys in standard runlevels 1:2345:respawn:/sbin/mingetty tty1 2:2345:respawn:/sbin/mingetty tty2 3:2345:respawn:/sbin/mingetty tty3 4:2345:respawn:/sbin/mingetty tty4 5:2345:respawn:/sbin/mingetty tty5 6:2345:respawn:/sbin/mingetty tty6 # Run xdm in runlevel 5 x:5:respawn:/etc/X11/prefdm -nodaemon �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chkconfig --list NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off avahi-dnsconfd 0:off 1:off 2:off 3:off 4:off 5:off 6:off bluetooth 0:off 1:off 2:on 3:off 4:on 5:on 6:off capi 0:off 1:off 2:off 3:off 4:off 5:off 6:off conman 0:off 1:off 2:off 3:off 4:off 5:off 6:off cpuspeed 0:off 1:on 2:on 3:off 4:on 5:on 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off cups 0:off 1:off 2:on 3:off 4:on 5:on 6:off dnsmasq 0:off 1:off 2:off 3:off 4:off 5:off 6:off dund 0:off 1:off 2:off 3:off 4:off 5:off 6:off firstboot 0:off 1:off 2:off 3:on 4:off 5:on 6:off gpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off hidd 0:off 1:off 2:on 3:on 4:on 5:on 6:off ip6tables 0:off 1:off 2:on 3:off 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off irda 0:off 1:off 2:off 3:off 4:off 5:off 6:off irqbalance 0:off 1:off 2:on 3:on 4:on 5:on 6:off isdn 0:off 1:off 2:on 3:on 4:on 5:on 6:off kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off mcstrans 0:off 1:off 2:on 3:on 4:on 5:on 6:off mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off microcode_ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:off multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off nscd 0:off 1:off 2:off 3:on 4:on 5:on 6:off oddjobd 0:off 1:off 2:off 3:off 4:off 5:off 6:off pand 0:off 1:off 2:off 3:off 4:off 5:off 6:off pcscd 0:off 1:off 2:on 3:on 4:on 5:on 6:off portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off postgresql-9.0 0:off 1:off 2:on 3:on 4:on 5:on 6:off psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off readahead_early 0:off 1:off 2:on 3:on 4:on 5:on 6:off readahead_later 0:off 1:off 2:off 3:off 4:off 5:on 6:off restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off smartd 0:off 1:off 2:on 3:on 4:on 5:on 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off tcsd 0:off 1:off 2:off 3:off 4:off 5:off 6:off wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off yum-updatesd 0:off 1:off 2:on 3:on 4:on 5:on 6:off �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chkconfig --list NetworkManager 0:off 1:off 2:off 3:off 4:off 5:off 6:off acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off avahi-daemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off avahi-dnsconfd 0:off 1:off 2:off 3:off 4:off 5:off 6:off bluetooth 0:off 1:off 2:on 3:off 4:on 5:on 6:off capi 0:off 1:off 2:off 3:off 4:off 5:off 6:off conman 0:off 1:off 2:off 3:off 4:off 5:off 6:off cpuspeed 0:off 1:on 2:on 3:off 4:on 5:on 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off cups 0:off 1:off 2:on 3:off 4:on 5:on 6:off dnsmasq 0:off 1:off 2:off 3:off 4:off 5:off 6:off dund 0:off 1:off 2:off 3:off 4:off 5:off 6:off firstboot 0:off 1:off 2:off 3:on 4:off 5:on 6:off gpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off hidd 0:off 1:off 2:on 3:on 4:on 5:on 6:off ip6tables 0:off 1:off 2:on 3:off 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off irda 0:off 1:off 2:off 3:off 4:off 5:off 6:off irqbalance 0:off 1:off 2:on 3:on 4:on 5:on 6:off isdn 0:off 1:off 2:on 3:on 4:on 5:on 6:off kudzu 0:off 1:off 2:off 3:on 4:on 5:on 6:off lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off mcstrans 0:off 1:off 2:on 3:on 4:on 5:on 6:off mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off microcode_ctl 0:off 1:off 2:on 3:on 4:on 5:on 6:off multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off nscd 0:off 1:off 2:off 3:on 4:on 5:on 6:off oddjobd 0:off 1:off 2:off 3:off 4:off 5:off 6:off pand 0:off 1:off 2:off 3:off 4:off 5:off 6:off pcscd 0:off 1:off 2:on 3:on 4:on 5:on 6:off portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off postgresql-9.0 0:off 1:off 2:on 3:on 4:on 5:on 6:off psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off readahead_early 0:off 1:off 2:on 3:on 4:on 5:on 6:off readahead_later 0:off 1:off 2:off 3:off 4:off 5:on 6:off restorecond 0:off 1:off 2:on 3:on 4:on 5:on 6:off rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcsvcgssd 0:off 1:off 2:off 3:off 4:off 5:off 6:off saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off smartd 0:off 1:off 2:on 3:on 4:on 5:on 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off tcsd 0:off 1:off 2:off 3:off 4:off 5:off 6:off wpa_supplicant 0:off 1:off 2:off 3:off 4:off 5:off 6:off ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off yum-updatesd 0:off 1:off 2:on 3:on 4:on 5:on 6:off �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# chkconfig --list���������������at /etc/inittab ����������������hkconfig --list postgresql-9.0����������������������[3P postgresql-9.0 on������������������--list postgresql-9.0����������������������[3P postgresql-9.0 on �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# less /etc/ini�t.d/oddjobd ��[K��[K��[K��[K��[K��[K��[K��[Kpo�stgresql-9.0 �[?1049h�[?1h�= #!/bin/sh # # postgresql This is the init script for starting up the PostgreSQL # server. # # chkconfig: - 64 36 # description: PostgreSQL database server. # processname: postmaster # pidfile: /var/run/postmaster-9.0.pid # This script is slightly unusual in that the name of the daemon (postmaster) # is not the same as the name of the subsystem (postgresql) # Version 9.0 Devrim Gunduz <devrim@gunduz.org> # Get rid of duplicate PGDATA assignment. # Ensure pgstartup.log gets the right ownership/permissions during initdb # Version 9.0.1 Devrim Gunduz <devrim@gunduz.org> # Arrange for the postmaster, but not any of its child processes, to be run # with oom_adj -17. This compensates for the OOM killer not being smart about # accounting for shared memory usage. # Version 9.0.2 Devrim Gunduz <devrim@gunduz.org> �[7m/etc/init.d/postgresql-9.0 �[27m�[K �[K�[?1l�>�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls -��[K-l /etc/i��[Krc.�d/rc3.d/ �[00mtotal 256 lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mK01dnsmasq�[00m -> �[00;32m../init.d/dnsmasq�[00m lrwxrwxrwx 1 root root 24 Jul 7 10:16 �[00;36mK02avahi-dnsconfd�[00m -> �[00;32m../init.d/avahi-dnsconfd�[00m lrwxrwxrwx 1 root root 24 Jul 7 10:16 �[00;36mK02NetworkManager�[00m -> �[00;32m../init.d/NetworkManager�[00m lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mK02oddjobd�[00m -> �[00;32m../init.d/oddjobd�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mK05conman�[00m -> �[00;32m../init.d/conman�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mK05saslauthd�[00m -> �[00;32m../init.d/saslauthd�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mK10cups�[00m -> �[00;32m../init.d/cups�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mK10psacct�[00m -> �[00;32m../init.d/psacct�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mK10tcsd�[00m -> �[00;32m../init.d/tcsd�[00m lrwxrwxrwx 1 root root 13 Jul 7 10:16 �[00;36mK20nfs�[00m -> �[00;32m../init.d/nfs�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mK24irda�[00m -> �[00;32m../init.d/irda�[00m lrwxrwxrwx 1 root root 20 Jul 7 10:16 �[00;36mK50netconsole�[00m -> �[00;32m../init.d/netconsole�[00m lrwxrwxrwx 1 root root 20 Jul 7 10:16 �[00;36mK69rpcsvcgssd�[00m -> �[00;32m../init.d/rpcsvcgssd�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mK73ypbind�[00m -> �[00;32m../init.d/ypbind�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mK85mdmpd�[00m -> �[00;32m../init.d/mdmpd�[00m lrwxrwxrwx 1 root root 20 Jul 7 10:16 �[00;36mK87multipathd�[00m -> �[00;32m../init.d/multipathd�[00m lrwxrwxrwx 1 root root 24 Jul 7 10:16 �[00;36mK88wpa_supplicant�[00m -> �[00;32m../init.d/wpa_supplicant�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mK89dund�[00m -> �[00;32m../init.d/dund�[00m lrwxrwxrwx 1 root root 18 Jul 7 10:16 �[00;36mK89netplugd�[00m -> �[00;32m../init.d/netplugd�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mK89pand�[00m -> �[00;32m../init.d/pand�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mK89rdisc�[00m -> �[00;32m../init.d/rdisc�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mK90bluetooth�[00m -> �[00;32m../init.d/bluetooth�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mK91capi�[00m -> �[00;32m../init.d/capi�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mK92ip6tables�[00m -> �[00;32m../init.d/ip6tables�[00m lrwxrwxrwx 1 root root 18 Jul 7 10:16 �[00;36mK99cpuspeed�[00m -> �[00;32m../init.d/cpuspeed�[00m lrwxrwxrwx 1 root root 25 Jul 7 10:16 �[00;36mK99readahead_later�[00m -> �[00;32m../init.d/readahead_later�[00m lrwxrwxrwx 1 root root 23 Jul 7 10:16 �[00;36mS00microcode_ctl�[00m -> �[00;32m../init.d/microcode_ctl�[00m lrwxrwxrwx 1 root root 22 Jul 7 10:16 �[00;36mS02lvm2-monitor�[00m -> �[00;32m../init.d/lvm2-monitor�[00m lrwxrwxrwx 1 root root 25 Jul 7 10:16 �[00;36mS04readahead_early�[00m -> �[00;32m../init.d/readahead_early�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mS05kudzu�[00m -> �[00;32m../init.d/kudzu�[00m lrwxrwxrwx 1 root root 18 Jul 7 10:16 �[00;36mS08iptables�[00m -> �[00;32m../init.d/iptables�[00m lrwxrwxrwx 1 root root 18 Jul 7 10:16 �[00;36mS08mcstrans�[00m -> �[00;32m../init.d/mcstrans�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mS09isdn�[00m -> �[00;32m../init.d/isdn�[00m lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mS10network�[00m -> �[00;32m../init.d/network�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mS11auditd�[00m -> �[00;32m../init.d/auditd�[00m lrwxrwxrwx 1 root root 21 Jul 7 10:16 �[00;36mS12restorecond�[00m -> �[00;32m../init.d/restorecond�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mS12syslog�[00m -> �[00;32m../init.d/syslog�[00m lrwxrwxrwx 1 root root 20 Jul 7 10:16 �[00;36mS13irqbalance�[00m -> �[00;32m../init.d/irqbalance�[00m lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mS13portmap�[00m -> �[00;32m../init.d/portmap�[00m lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mS14nfslock�[00m -> �[00;32m../init.d/nfslock�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mS15mdmonitor�[00m -> �[00;32m../init.d/mdmonitor�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mS18rpcidmapd�[00m -> �[00;32m../init.d/rpcidmapd�[00m lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mS19rpcgssd�[00m -> �[00;32m../init.d/rpcgssd�[00m lrwxrwxrwx 1 root root 20 Jul 7 10:16 �[00;36mS22messagebus�[00m -> �[00;32m../init.d/messagebus�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mS25netfs�[00m -> �[00;32m../init.d/netfs�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mS25pcscd�[00m -> �[00;32m../init.d/pcscd�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mS26acpid�[00m -> �[00;32m../init.d/acpid�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mS26haldaemon�[00m -> �[00;32m../init.d/haldaemon�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mS26hidd�[00m -> �[00;32m../init.d/hidd�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mS28autofs�[00m -> �[00;32m../init.d/autofs�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mS30nscd�[00m -> �[00;32m../init.d/nscd�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:16 �[00;36mS55sshd�[00m -> �[00;32m../init.d/sshd�[00m lrwxrwxrwx 1 root root 20 Jul 7 10:16 �[00;36mS56rawdevices�[00m -> �[00;32m../init.d/rawdevices�[00m lrwxrwxrwx 1 root root 24 Jul 7 12:00 �[00;36mS64postgresql-9.0�[00m -> �[00;32m../init.d/postgresql-9.0�[00m lrwxrwxrwx 1 root root 18 Jul 7 10:16 �[00;36mS80sendmail�[00m -> �[00;32m../init.d/sendmail�[00m lrwxrwxrwx 1 root root 13 Jul 7 10:16 �[00;36mS85gpm�[00m -> �[00;32m../init.d/gpm�[00m lrwxrwxrwx 1 root root 15 Jul 7 10:16 �[00;36mS90crond�[00m -> �[00;32m../init.d/crond�[00m lrwxrwxrwx 1 root root 17 Jul 7 10:16 �[00;36mS95anacron�[00m -> �[00;32m../init.d/anacron�[00m lrwxrwxrwx 1 root root 13 Jul 7 10:16 �[00;36mS95atd�[00m -> �[00;32m../init.d/atd�[00m lrwxrwxrwx 1 root root 22 Jul 7 10:16 �[00;36mS97yum-updatesd�[00m -> �[00;32m../init.d/yum-updatesd�[00m lrwxrwxrwx 1 root root 22 Jul 7 10:16 �[00;36mS98avahi-daemon�[00m -> �[00;32m../init.d/avahi-daemon�[00m lrwxrwxrwx 1 root root 19 Jul 7 10:16 �[00;36mS99firstboot�[00m -> �[00;32m../init.d/firstboot�[00m lrwxrwxrwx 1 root root 11 Jul 6 16:51 �[00;36mS99local�[00m -> �[00;32m../rc.local�[00m lrwxrwxrwx 1 root root 16 Jul 7 10:16 �[00;36mS99smartd�[00m -> �[00;32m../init.d/smartd�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls -l /etc/rc.d/rc3.d/��[K��[K��[K��[K6.d/ �[00mtotal 260 lrwxrwxrwx 1 root root 17 Jul 6 16:51 �[00;36mK01dnsmasq�[00m -> �[00;32m../init.d/dnsmasq�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK01smartd�[00m -> �[00;32m../init.d/smartd�[00m lrwxrwxrwx 1 root root 22 Jul 6 16:52 �[00;36mK02avahi-daemon�[00m -> �[00;32m../init.d/avahi-daemon�[00m lrwxrwxrwx 1 root root 24 Jul 6 16:52 �[00;36mK02avahi-dnsconfd�[00m -> �[00;32m../init.d/avahi-dnsconfd�[00m lrwxrwxrwx 1 root root 24 Jul 6 16:52 �[00;36mK02NetworkManager�[00m -> �[00;32m../init.d/NetworkManager�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:51 �[00;36mK02oddjobd�[00m -> �[00;32m../init.d/oddjobd�[00m lrwxrwxrwx 1 root root 22 Jul 6 16:52 �[00;36mK03yum-updatesd�[00m -> �[00;32m../init.d/yum-updatesd�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:51 �[00;36mK05anacron�[00m -> �[00;32m../init.d/anacron�[00m lrwxrwxrwx 1 root root 13 Jul 6 16:51 �[00;36mK05atd�[00m -> �[00;32m../init.d/atd�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK05conman�[00m -> �[00;32m../init.d/conman�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:51 �[00;36mK05saslauthd�[00m -> �[00;32m../init.d/saslauthd�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK10cups�[00m -> �[00;32m../init.d/cups�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK10psacct�[00m -> �[00;32m../init.d/psacct�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:51 �[00;36mK10tcsd�[00m -> �[00;32m../init.d/tcsd�[00m lrwxrwxrwx 1 root root 13 Jul 6 16:51 �[00;36mK15gpm�[00m -> �[00;32m../init.d/gpm�[00m lrwxrwxrwx 1 root root 13 Jul 6 16:52 �[00;36mK20nfs�[00m -> �[00;32m../init.d/nfs�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK24irda�[00m -> �[00;32m../init.d/irda�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK25sshd�[00m -> �[00;32m../init.d/sshd�[00m lrwxrwxrwx 1 root root 18 Jul 6 16:51 �[00;36mK30sendmail�[00m -> �[00;32m../init.d/sendmail�[00m lrwxrwxrwx 1 root root 24 Jul 7 10:49 �[00;36mK36postgresql-9.0�[00m -> �[00;32m../init.d/postgresql-9.0�[00m lrwxrwxrwx 1 root root 20 Jul 6 16:51 �[00;36mK44rawdevices�[00m -> �[00;32m../init.d/rawdevices�[00m lrwxrwxrwx 1 root root 20 Jul 6 16:51 �[00;36mK50netconsole�[00m -> �[00;32m../init.d/netconsole�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:51 �[00;36mK60crond�[00m -> �[00;32m../init.d/crond�[00m lrwxrwxrwx 1 root root 20 Jul 6 16:52 �[00;36mK69rpcsvcgssd�[00m -> �[00;32m../init.d/rpcsvcgssd�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK72autofs�[00m -> �[00;32m../init.d/autofs�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK73ypbind�[00m -> �[00;32m../init.d/ypbind�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:51 �[00;36mK74acpid�[00m -> �[00;32m../init.d/acpid�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:52 �[00;36mK74haldaemon�[00m -> �[00;32m../init.d/haldaemon�[00m lrwxrwxrwx 1 root root 14 Jul 7 10:08 �[00;36mK74nscd�[00m -> �[00;32m../init.d/nscd�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:51 �[00;36mK75netfs�[00m -> �[00;32m../init.d/netfs�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:51 �[00;36mK85mdmonitor�[00m -> �[00;32m../init.d/mdmonitor�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:51 �[00;36mK85mdmpd�[00m -> �[00;32m../init.d/mdmpd�[00m lrwxrwxrwx 1 root root 20 Jul 6 16:52 �[00;36mK85messagebus�[00m -> �[00;32m../init.d/messagebus�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:52 �[00;36mK85rpcgssd�[00m -> �[00;32m../init.d/rpcgssd�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:52 �[00;36mK85rpcidmapd�[00m -> �[00;32m../init.d/rpcidmapd�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:52 �[00;36mK86nfslock�[00m -> �[00;32m../init.d/nfslock�[00m lrwxrwxrwx 1 root root 20 Jul 6 16:51 �[00;36mK87irqbalance�[00m -> �[00;32m../init.d/irqbalance�[00m lrwxrwxrwx 1 root root 18 Jul 6 16:51 �[00;36mK87mcstrans�[00m -> �[00;32m../init.d/mcstrans�[00m lrwxrwxrwx 1 root root 20 Jul 6 16:51 �[00;36mK87multipathd�[00m -> �[00;32m../init.d/multipathd�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:51 �[00;36mK87portmap�[00m -> �[00;32m../init.d/portmap�[00m lrwxrwxrwx 1 root root 21 Jul 6 16:51 �[00;36mK87restorecond�[00m -> �[00;32m../init.d/restorecond�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK88auditd�[00m -> �[00;32m../init.d/auditd�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:51 �[00;36mK88pcscd�[00m -> �[00;32m../init.d/pcscd�[00m lrwxrwxrwx 1 root root 16 Jul 6 16:51 �[00;36mK88syslog�[00m -> �[00;32m../init.d/syslog�[00m lrwxrwxrwx 1 root root 24 Jul 6 16:51 �[00;36mK88wpa_supplicant�[00m -> �[00;32m../init.d/wpa_supplicant�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK89dund�[00m -> �[00;32m../init.d/dund�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK89hidd�[00m -> �[00;32m../init.d/hidd�[00m lrwxrwxrwx 1 root root 18 Jul 6 16:51 �[00;36mK89netplugd�[00m -> �[00;32m../init.d/netplugd�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK89pand�[00m -> �[00;32m../init.d/pand�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:51 �[00;36mK89rdisc�[00m -> �[00;32m../init.d/rdisc�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:52 �[00;36mK90bluetooth�[00m -> �[00;32m../init.d/bluetooth�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:51 �[00;36mK90network�[00m -> �[00;32m../init.d/network�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK91capi�[00m -> �[00;32m../init.d/capi�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:52 �[00;36mK91isdn�[00m -> �[00;32m../init.d/isdn�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:51 �[00;36mK92ip6tables�[00m -> �[00;32m../init.d/ip6tables�[00m lrwxrwxrwx 1 root root 18 Jul 6 16:50 �[00;36mK92iptables�[00m -> �[00;32m../init.d/iptables�[00m lrwxrwxrwx 1 root root 19 Jul 6 16:52 �[00;36mK95firstboot�[00m -> �[00;32m../init.d/firstboot�[00m lrwxrwxrwx 1 root root 15 Jul 6 16:52 �[00;36mK95kudzu�[00m -> �[00;32m../init.d/kudzu�[00m lrwxrwxrwx 1 root root 18 Jul 6 16:51 �[00;36mK99cpuspeed�[00m -> �[00;32m../init.d/cpuspeed�[00m lrwxrwxrwx 1 root root 22 Jul 6 16:51 �[00;36mK99lvm2-monitor�[00m -> �[00;32m../init.d/lvm2-monitor�[00m lrwxrwxrwx 1 root root 23 Jul 6 16:51 �[00;36mK99microcode_ctl�[00m -> �[00;32m../init.d/microcode_ctl�[00m lrwxrwxrwx 1 root root 25 Jul 6 16:51 �[00;36mK99readahead_early�[00m -> �[00;32m../init.d/readahead_early�[00m lrwxrwxrwx 1 root root 25 Jul 6 16:51 �[00;36mK99readahead_later�[00m -> �[00;32m../init.d/readahead_later�[00m lrwxrwxrwx 1 root root 17 Jul 6 16:51 �[00;36mS00killall�[00m -> �[00;32m../init.d/killall�[00m lrwxrwxrwx 1 root root 14 Jul 6 16:51 �[00;36mS01reboot�[00m -> �[00;32m../init.d/halt�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls -l /etc/rc.d/rc6.d/��[K��[K��[K��[K��[K��[K �[00mtotal 112 drwxr-xr-x 2 root root 4096 Jul 7 10:49 �[00;34minit.d�[00m -rwxr-xr-x 1 root root 2255 Jul 4 2009 �[00;32mrc�[00m drwxr-xr-x 2 root root 4096 Jul 7 10:49 �[00;34mrc0.d�[00m drwxr-xr-x 2 root root 4096 Jul 7 10:49 �[00;34mrc1.d�[00m drwxr-xr-x 2 root root 4096 Jul 7 12:00 �[00;34mrc2.d�[00m drwxr-xr-x 2 root root 4096 Jul 7 12:00 �[00;34mrc3.d�[00m drwxr-xr-x 2 root root 4096 Jul 7 12:00 �[00;34mrc4.d�[00m drwxr-xr-x 2 root root 4096 Jul 7 12:00 �[00;34mrc5.d�[00m drwxr-xr-x 2 root root 4096 Jul 7 10:49 �[00;34mrc6.d�[00m -rwxr-xr-x 1 root root 220 Jul 4 2009 �[00;32mrc.local�[00m -rwxr-xr-x 1 root root 27476 Sep 28 2009 �[00;32mrc.sysinit�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls -l /etc/ini�t.d/ -d �[00mdrwxr-xr-x 2 root root 4096 Jul 7 10:49 �[00;34m/etc/init.d/�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls -l /etc/init.d/ -d�����[1P -d��� �[00mlrwxrwxrwx 1 root root 11 Jul 6 16:50 �[00;36m/etc/init.d�[00m -> �[00;34mrc.d/init.d�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# vim /ec��[Ktc/fstab �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H"/etc/fstab" "/etc/fstab" 10L, 780C�[>c�[1;1H�[36mLABEL�[m�[33m=�[m�[31m/�[m�[17C/�[23C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 1�[m �[36mLABEL�[m�[33m=�[m�[31m/var�[m�[14C/var�[20C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/home�[m�[13C/home�[19C�[32mext3�[m �[32mdefaults�[m�[8C�[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/pg_xlog�[m�[10C/pg_xlog�[16C�[32mext3�[m �[33mnoatime,�[m�[32mnodiratime�[m �[5;1H �[31m1 2�[m �[36mLABEL�[m�[33m=�[m�[31m/data�[m�[13C/data�[19C�[32mext3�[m �[33mnoatime,�[m�[32mnodiratime�[m �[7;1H �[31m1 2�[m �[36mtmpfs�[m�[19C/dev/shm�[16C�[32mtmpfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mdevpts�[m�[18C/dev/pts�[16C�[32mdevpts�[m �[33mgid=�[m�[31m5�[m�[33m,mode=�[m�[31m620�[m �[31m0 0�[m �[36msysfs�[m�[19C/sys�[20C�[32msysfs�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mproc�[m�[20C/proc�[19C�[32mproc�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[36mLABEL�[m�[33m=�[m�[31mSWAP-sda5�[m�[9C�[33mswap�[m�[20C�[32mswap�[m �[32mdefaults�[m�[8C�[31m0 0�[m �[1m�[34m~ �[14;1H~ �[15;1H~ �[16;1H~ �[17;1H~ �[18;1H~ �[19;1H~ �[20;1H~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H10,1 All�[12;1H�[?12l�[?25h��[?25l�[24;63H9,1 All�[11;1H�[?12l�[?25h�[?25l�[24;63H8,1 All�[10;1H�[?12l�[?25h�[?25l�[24;63H7,1 All�[9;1H�[?12l�[?25h�[?25l�[24;63H6,1 All�[8;1H�[?12l�[?25h�[?25l�[24;63H5,1 All�[6;1H�[?12l�[?25h�[?25l�[24;63H4,1 All�[4;1H�[?12l�[?25h�[?25l�[24;63H3,1 All�[3;1H�[?12l�[?25h�[?25l�[24;63H4,1 All�[4;1H�[?12l�[?25h�[?25l�[24;63H4,25 All�[4;25H�[?12l�[?25h�[?25l�[24;63H4,49 All�[4;49H�[?12l�[?25h�[?25l�[24;63H4,57 All�[4;57H�[?12l�[?25h�[?25l�[24;63H4,64 All�[4;64H�[?12l�[?25h�[?25l�[24;63H4,65 All�[4;65H�[?12l�[?25h�[?25l�[24;63H4,66 All�[4;66H�[?12l�[?25h�[?25l�[24;63H4,67 All�[4;67H�[?12l�[?25h�[?25l�[24;63H4,68 All�[4;68H�[?12l�[?25h�[?25l�[24;63H4,69 All�[4;69H�[?12l�[?25h�[?25l�[24;63H4,70 All�[4;70H�[?12l�[?25h�[?25l�[24;63H4,71 All�[4;71H�[?12l�[?25h�[?25l�[24;63H4,72 All�[4;72H�[?12l�[?25h�[?25l�[24;63H4,73 All�[4;73H�[?12l�[?25h�[?25l�[24;63H4,74 All�[4;74H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;14H�[K�[24;63H4,75 All�[4;75H�[?12l�[?25h�[?25l�[33m,�[m �[5;1H �[31m1 2�[m�[24;63H4,76 All�[4;76H�[?12l�[?25h�[?25ld �[5;1H �[31m1 2�[m�[24;63H4,77 All�[4;77H�[?12l�[?25h�[?25la �[5;1H �[31m1 2�[m�[24;63H4,78 All�[4;78H�[?12l�[?25h�[?25lt �[5;1H �[31m1 2�[m�[24;63H4,79 All�[4;79H�[?12l�[?25h�[?25la �[5;1H �[31m1 2�[m�[24;63H4,80 All�[4;80H�[?12l�[?25h�[?25l�����[33mdata==�[m�[5;1H �[31m1 2�[m�[24;63H4,81 All�[5;1H�[?12l�[?25h�[?25lw�[7C �[31m1 2�[m�[24;63H4,82 All�[5;2H�[?12l�[?25h�[?25lr�[7C �[31m1 2�[m�[24;63H4,83 All�[5;3H�[?12l�[?25h�[?25li�[7C �[31m1 2�[m�[24;63H4,84 All�[5;4H�[?12l�[?25h�[?25lt�[7C �[31m1 2�[m�[24;63H4,85 All�[5;5H�[?12l�[?25h�[?25le�[7C �[31m1 2�[m�[24;63H4,86 All�[5;6H�[?12l�[?25h�[?25lb�[7C �[31m1 2�[m�[24;63H4,87 All�[5;7H�[?12l�[?25h�[?25la�[7C �[31m1 2�[m�[24;63H4,88 All�[5;8H�[?12l�[?25h�[?25lc�[7C �[31m1 2�[m�[24;63H4,89 All�[5;9H�[?12l�[?25h�[?25l �[31mwriteback�[m�[7C �[31m1 2�[m�[24;63H4,90 All�[5;10H�[?12l�[?25h�[24;1H�[K�[5;9H�[?25l�[24;63H4,89 All�[5;9H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l"/etc/fstab" "/etc/fstab" 10L, 795C written �[?1l�>�[?12l�[?25h�[?1049l�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 4061540 1102412 2749484 29% / /dev/sda7 2030736 73332 1852584 4% /var /dev/sda6 2030736 35884 1890032 2% /home /dev/sda2 16253956 193040 15221924 2% /data tmpfs 4087664 0 4087664 0% /dev/shm /dev/sda3 4061572 90212 3761712 3% /pg_xlog �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# /etc/init.d/�������������[K/etc/init.d/postgresql-9.0 stop Stopping postgresql-9.0 service: �[60G[�[0;32m OK �[0;39m] �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# umount /pg_xlog/��[K && mount /pg_xlog/��[K �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# mount /dev/sda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda7 on /var type ext3 (rw) /dev/sda6 on /home type ext3 (rw) /dev/sda2 on /data type ext3 (rw,noatime,nodiratime) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) /dev/sda3 on /pg_xlog type ext3 (rw,noatime,nodiratime,data=writeback) �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# �[1@(reverse-i-search)`':�[C���s': /etc/init.d/postgresql-9.0 stop���� �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[1@t�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[15Pa': vim /etc/fstab ������������������r': /etc/init.d/postgresql-9.0 start����� �[5P[root@prod-db data]#�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C Starting postgresql-9.0 service: �[60G[�[0;32m OK �[0;39m] �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# ls /tmp �[00m�[00mmad-1_0-beta-1.backup.filepart�[00m �[00;31mpgdg-centos-9.0-2.noarch.rpm�[00m �[00msfmaps.backup�[00m �[m�]0;root@prod-db:/data/9.0/data�[root@prod-db data]# less /tmp/sfmaps.backup "/tmp/sfmaps.backup" may be a binary file. See it anyway? �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# rpm -ql postgis90-utils /usr/share/doc/postgis90-utils-1.5.2 /usr/share/doc/postgis90-utils-1.5.2/README /usr/share/postgis90/create_undef.pl /usr/share/postgis90/new_postgis_restore.pl /usr/share/postgis90/postgis_proc_upgrade.pl /usr/share/postgis90/postgis_restore.pl /usr/share/postgis90/profile_intersects.pl /usr/share/postgis90/read_scripts_version.pl /usr/share/postgis90/test_estimation.pl /usr/share/postgis90/test_geography_estimation.pl /usr/share/postgis90/test_geography_joinestimation.pl /usr/share/postgis90/test_joinestimation.pl �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# createdb -U postgres ����������������������[Ksu - postgres -bash-3.2$ vim .pgpass �[?1049h�[?1h�=�[1;24r�[?12;25h�[?12l�[?25h�[27m�[m�[H�[2J�[?25l�[24;1H".pgpass" [New File]�[>c�[2;1H�[1m�[34m~ �[3;1H~ �[4;1H~ �[5;1H~ �[6;1H~ �[7;1H~ �[8;1H~ �[9;1H~ �[10;1H~ �[11;1H~ �[12;1H~ �[13;1H~ �[14;1H~ �[15;1H~ �[16;1H~ �[17;1H~ �[18;1H~ �[19;1H~ �[20;1H~ �[21;1H~ �[22;1H~ �[23;1H~ �[m�[24;63H0,0-1 All�[1;1H�[?12l�[?25h�[?25l�[24;1H�[1m-- INSERT --�[m�[24;13H�[K�[24;63H0,1 All�[1;1H�[?12l�[?25h�[?25li�[24;63H1,2 All�[1;2H�[?12l�[?25h�[?25l�[1;1H�[K�[24;63H1,1 All�[1;1H�[?12l�[?25h�[?25l*�[24;63H1,2 All�[1;2H�[?12l�[?25h�[?25l:�[24;63H1,3 All�[1;3H�[?12l�[?25h�[?25l5�[24;63H1,4 All�[1;4H�[?12l�[?25h�[?25l4�[24;63H1,5 All�[1;5H�[?12l�[?25h�[?25l3�[24;63H1,6 All�[1;6H�[?12l�[?25h�[?25l2�[24;63H1,7 All�[1;7H�[?12l�[?25h�[?25l:�[24;63H1,8 All�[1;8H�[?12l�[?25h�[?25l*�[24;63H1,9 All�[1;9H�[?12l�[?25h�[?25l:�[24;63H1,10 All�[1;10H�[?12l�[?25h�[?25lp�[24;63H1,11 All�[1;11H�[?12l�[?25h�[?25lo�[24;63H1,12 All�[1;12H�[?12l�[?25h�[?25ls�[24;63H1,13 All�[1;13H�[?12l�[?25h�[?25lt�[24;63H1,14 All�[1;14H�[?12l�[?25h�[?25lg�[24;63H1,15 All�[1;15H�[?12l�[?25h�[?25lr�[24;63H1,16 All�[1;16H�[?12l�[?25h�[?25le�[24;63H1,17 All�[1;17H�[?12l�[?25h�[?25ls�[24;63H1,18 All�[1;18H�[?12l�[?25h�[?25l:�[24;63H1,19 All�[1;19H�[?12l�[?25h�[?25lt�[24;63H1,20 All�[1;20H�[?12l�[?25h�[?25la�[24;63H1,21 All�[1;21H�[?12l�[?25h�[?25ll�[24;63H1,22 All�[1;22H�[?12l�[?25h�[?25l�[1;21H�[K�[24;63H1,21 All�[1;21H�[?12l�[?25h�[?25l�[1;20H�[K�[24;63H1,20 All�[1;20H�[?12l�[?25h�[?25ll�[24;63H1,21 All�[1;21H�[?12l�[?25h�[?25la�[24;63H1,22 All�[1;22H�[?12l�[?25h�[?25ln�[24;63H1,23 All�[1;23H�[?12l�[?25h�[?25le�[24;63H1,24 All�[1;24H�[?12l�[?25h�[?25l1�[24;63H1,25 All�[1;25H�[?12l�[?25h�[24;1H�[K�[1;24H�[?25l�[24;63H1,24 All�[1;24H�[?12l�[?25h��[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h�[?25l�[24;1H�[K�[24;63H1,24 All�[1;24H�[?12l�[?25h����[?25l�[24;63H1,1 All�[1;1H�[?12l�[?25h�[?25l�[24;63H1,2 All�[1;2H�[?12l�[?25h�[?25l�[24;63H1,3 All�[1;3H�[?12l�[?25h�[?25l�[24;63H1,4 All�[1;4H�[?12l�[?25h�[?25l�[24;63H1,5 All�[1;5H�[?12l�[?25h�[?25l�[24;63H1,6 All�[1;6H�[?12l�[?25h�[?25l�[24;63H1,7 All�[1;7H�[?12l�[?25h�[?25l�[24;63H1,8 All�[1;8H�[?12l�[?25h�[?25l�[24;63H1,9 All�[1;9H�[?12l�[?25h�[?25l�[24;63H1,10 All�[1;10H�[?12l�[?25h�[?25l�[24;63H1,11 All�[1;11H�[?12l�[?25h�[?25l�[24;63H1,12 All�[1;12H�[?12l�[?25h�[?25l�[24;63H1,13 All�[1;13H�[?12l�[?25h�[?25l�[24;63H1,14 All�[1;14H�[?12l�[?25h�[?25l�[24;63H1,15 All�[1;15H�[?12l�[?25h�[?25l�[24;63H1,16 All�[1;16H�[?12l�[?25h�[?25l�[24;63H1,17 All�[1;17H�[?12l�[?25h�[?25l�[24;63H1,18 All�[1;18H�[?12l�[?25h�[?25l�[24;63H1,19 All�[1;19H�[?12l�[?25h�[?25l�[24;63H1,20 All�[1;20H�[?12l�[?25h�[?25l�[24;63H1,21 All�[1;21H�[?12l�[?25h�[?25l�[24;63H1,22 All�[1;22H�[?12l�[?25h�[?25l�[24;63H�[K�[24;1H:�[?12l�[?25hw�[?25l :w�[?12l�[?25hq�[?25l :wq�[?12l�[?25h �[?25l".pgpass" ".pgpass" [New] 1L, 25C written �[?1l�>�[?12l�[?25h�[?1049l-bash-3.2$ chmod 600 .pgpass -bash-3.2$ psql -l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -----------+----------+----------+------------+------------+-------------------- --- postgres | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es template1 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es (3 rows) -bash-3.2$ created b��[K��[Kb sfmaps -bash-3.2$ psql -l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -----------+----------+----------+------------+------------+-------------------- --- postgres | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | sfmaps | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es template1 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres + | | | | | postgres=CTc/postgr es (4 rows) -bash-3.2$ pg_restore /tmp/sfmaps.backup | psql ��[K��[K��[K��[K��[K��[K��[K-s | psql sfmaps 2> /tmp/restore.err SET SET SET SET SET SET ALTER LANGUAGE SET CREATE TYPE ALTER TYPE CREATE TYPE ALTER TYPE CREATE TYPE ALTER TYPE CREATE TYPE ALTER TYPE CREATE TYPE ALTER TYPE CREATE TYPE ALTER TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION SET SET SET SET CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE SET SET CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE CREATE SEQUENCE ALTER TABLE SET SET SET SET SET SET CREATE SEQUENCE ALTER TABLE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE CREATE INDEX ALTER TABLE ALTER TABLE REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT -bash-3.2$ less /tmp/restore.err �[?1049h�[?1h�= ERROR: language "plpgsql" already exists ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box2d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box2d_out(box2d) does not exist ERROR: function st_box2d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box3d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box3d_out(box3d) does not exist ERROR: function st_box3d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_chip_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_chip_out(chip) does not exist ERROR: function st_chip_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_geometry_analyze(internal) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_geometry_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_geometry_out(geometry) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory �[7m/tmp/restore.err �[27m�[K �[K�[?1l�>�[?1049l-bash-3.2$ ls /usr/lib64/p�o�����[Kg�����[K��[K��[K��[K��[K��[K��[K��[Kpgsql-9.0/lib/� adminpack.so libecpg_compat.so.3 seg.so ascii_and_mic.so libecpg_compat.so.3.2 sslinfo.so auto_explain.so libecpg.so tablefunc.so autoinc.so libecpg.so.6 test_parser.so btree_gin.so libecpg.so.6.2 timetravel.so btree_gist.so libpgtypes.so.3 tsearch2.so chkpass.so libpgtypes.so.3.1 unaccent.so citext.so libpq.so.5 utf8_and_ascii.so cube.so libpq.so.5.3 utf8_and_big5.so cyrillic_and_mic.so libpqwalreceiver.so utf8_and_cyrillic.so dblink.so lo.so utf8_and_euc2004.so dict_int.so ltree.so utf8_and_euc_cn.so dict_snowball.so moddatetime.so utf8_and_euc_jp.so dict_xsyn.so pageinspect.so utf8_and_euc_kr.so earthdistance.so passwordcheck.so utf8_and_euc_tw.so euc2004_sjis2004.so pg_buffercache.so utf8_and_gb18030.so euc_cn_and_mic.so pgcrypto.so utf8_and_gbk.so euc_jp_and_sjis.so pg_freespacemap.so utf8_and_iso8859_1.so euc_kr_and_mic.so pgrowlocks.so utf8_and_iso8859.so euc_tw_and_big5.so pg_stat_statements.so utf8_and_johab.so fuzzystrmatch.so pgstattuple.so utf8_and_sjis2004.so hstore.so pg_trgm.so utf8_and_sjis.so insert_username.so pg_upgrade_support.so utf8_and_uhc.so --More-- �[K _int.so pgxml.so utf8_and_win.so isn.so plpgsql.so uuid-ossp.so latin2_and_win1250.so postgis-1.5.so latin_and_mic.so refint.so -bash-3.2$ ls /usr/pgsql-9.0/lib/*geo* �[00mls: /usr/pgsql-9.0/lib/*geo*: No such file or directory �[m-bash-3.2$ ls /usr/pgsql-9.0/lib/*geo*��[K��[K��[K��[Kpostgis* �[00m�[00;32m/usr/pgsql-9.0/lib/postgis-1.5.so�[00m �[m-bash-3.2$ dropd ��[Kb sfmaps -bash-3.2$ createdb sfmaps -bash-3.2$ rpm -ql postgis90-utils /usr/share/doc/postgis90-utils-1.5.2 /usr/share/doc/postgis90-utils-1.5.2/README /usr/share/postgis90/create_undef.pl /usr/share/postgis90/new_postgis_restore.pl /usr/share/postgis90/postgis_proc_upgrade.pl /usr/share/postgis90/postgis_restore.pl /usr/share/postgis90/profile_intersects.pl /usr/share/postgis90/read_scripts_version.pl /usr/share/postgis90/test_estimation.pl /usr/share/postgis90/test_geography_estimation.pl /usr/share/postgis90/test_geography_joinestimation.pl /usr/share/postgis90/test_joinestimation.pl -bash-3.2$ /usr/share/postgis90/new_postgis_restore.pl -bash: /usr/share/postgis90/new_postgis_restore.pl: Permission denied -bash-3.2$ /usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cp/usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Ce/usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cr/usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cl/usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C /usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C Usage: /usr/share/postgis90/new_postgis_restore.pl <dumpfile> Restore a custom dump (pg_dump -Fc) of a PostGIS-enabled database. First dump the old database: pg_dump -Fc <olddb> > <olddb.dmp> Then create a new database: createdb <newdb> Then install PostGIS in the new database: psql -f <path>/postgis.sql Finally, run this script on the old dump: /usr/share/postgis90/new_postgis_restore.pl <olddb.dmp> | psql <newdb> -bash-3.2$ perl /usr/share/postgis90/new_postgis_restore.pl -bash-3.2$ less /tmp/restore.err �[?1049h�[?1h�= ERROR: language "plpgsql" already exists ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box2d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box2d_out(box2d) does not exist ERROR: function st_box2d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box3d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_box3d_out(box3d) does not exist ERROR: function st_box3d_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_chip_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_chip_out(chip) does not exist ERROR: function st_chip_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_geometry_analyze(internal) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_geometry_in(cstring) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory ERROR: function public.st_geometry_out(geometry) does not exist ERROR: could not access file "$libdir/liblwgeom": No such file or directory �[7m/tmp/restore.err �[27m�[K �[K�[?1l�>�[?1049l-bash-3.2$ ps���[Kless /tmp/restore.err �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cperl /usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[5P/usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cperl /usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[5P/usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[20Prpm -ql postgis90-utils /usr/share/doc/postgis90-utils-1.5.2 /usr/share/doc/postgis90-utils-1.5.2/README /usr/share/postgis90/create_undef.pl /usr/share/postgis90/new_postgis_restore.pl /usr/share/postgis90/postgis_proc_upgrade.pl /usr/share/postgis90/postgis_restore.pl /usr/share/postgis90/profile_intersects.pl /usr/share/postgis90/read_scripts_version.pl /usr/share/postgis90/test_estimation.pl /usr/share/postgis90/test_geography_estimation.pl /usr/share/postgis90/test_geography_joinestimation.pl /usr/share/postgis90/test_joinestimation.pl -bash-3.2$ rpm -ql postgis90-utils �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[1Pless /tmp/restore.err �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cperl /usr/share/postgis90/new_postgis_restore.pl Usage: /usr/share/postgis90/new_postgis_restore.pl <dumpfile> Restore a custom dump (pg_dump -Fc) of a PostGIS-enabled database. First dump the old database: pg_dump -Fc <olddb> > <olddb.dmp> Then create a new database: createdb <newdb> Then install PostGIS in the new database: psql -f <path>/postgis.sql Finally, run this script on the old dump: /usr/share/postgis90/new_postgis_restore.pl <olddb.dmp> | psql <newdb> -bash-3.2$ perl /usr/share/postgis90/new_postgis_restore.pl �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Kpsql -f /usr/pgsql-9.0/share/� contrib/ pg_service.conf.sample snowball_create.sql conversion_create.sql postgres.bki sql_features.txt information_schema.sql postgres.description system_views.sql locale/ postgresql.conf.sample timezonesets/ man/ postgres.shdescription tsearch_data/ pg_hba.conf.sample psqlrc.sample pg_ident.conf.sample recovery.conf.sample -bash-3.2$ psql -f /usr/pgsql-9.0/share/contrib/� adminpack.sql tsearch2.sql autoinc.sql unaccent.sql btree_gin.sql uninstall_adminpack.sql btree_gist.sql uninstall_btree_gin.sql chkpass.sql uninstall_btree_gist.sql citext.sql uninstall_chkpass.sql cube.sql uninstall_citext.sql dblink.sql uninstall_cube.sql dict_int.sql uninstall_dblink.sql dict_xsyn.sql uninstall_dict_int.sql earthdistance.sql uninstall_dict_xsyn.sql fuzzystrmatch.sql uninstall_earthdistance.sql hstore.sql uninstall_fuzzystrmatch.sql insert_username.sql uninstall_hstore.sql int_aggregate.sql uninstall_int_aggregate.sql _int.sql uninstall__int.sql isn.sql uninstall_isn.sql lo.sql uninstall_lo.sql ltree.sql uninstall_ltree.sql moddatetime.sql uninstall_pageinspect.sql pageinspect.sql uninstall_pg_buffercache.sql pg_buffercache.sql uninstall_pgcrypto.sql pgcrypto.sql uninstall_pg_freespacemap.sql --More-- �[K -bash-3.2$ psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/� postgis.sql postgis_upgrade_15_minor.sql postgis_upgrade_13_to_15.sql spatial_ref_sys.sql postgis_upgrade_14_to_15.sql uninstall_postgis.sql -bash-3.2$ psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/po�stgis,���[K.sql sfmaps SET BEGIN CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TABLE CREATE TABLE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE CAST CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE VIEW CREATE FUNCTION CREATE CAST CREATE FUNCTION CREATE CAST CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION COMMIT DROP AGGREGATE DROP AGGREGATE DROP AGGREGATE DROP AGGREGATE DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION -bash-3.2$ psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.sql sfmaps�������[K��������������������������������������������������������������[7P�[1@l�[1@e�[1@s�[1@s �[?1049h�[?1h�= -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -- $Id: postgis.sql.in.c 5876 2010-08-31 18:00:26Z nicklas $ -- -- PostGIS - Spatial Types for PostgreSQL -- http://postgis.refractions.net -- Copyright 2001-2003 Refractions Research Inc. -- -- This is free software; you can redistribute and/or modify it under -- the terms of the GNU General Public Licence. See the COPYING file. -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- -- WARNING: Any change in this file must be evaluated for compatibility. -- Changes cleanly handled by postgis_upgrade.sql are fine, -- other changes will require a bump in Major version. -- Currently only function replaceble by CREATE OR REPLACE -- are cleanly handled. -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - �[7m/usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.sql �[27m�[K �[K...skipping... DROP FUNCTION IF EXISTS st_box2d_contain(box2d, box2d); DROP FUNCTION IF EXISTS st_box2d_contained(box2d, box2d); DROP FUNCTION IF EXISTS st_box2d_overlap(box2d, box2d); DROP FUNCTION IF EXISTS st_box2d_same(box2d, box2d); DROP FUNCTION IF EXISTS st_box2d_intersects(box2d, box2d); DROP FUNCTION IF EXISTS st_addbbox(geometry); DROP FUNCTION IF EXISTS st_dropbbox(geometry); DROP FUNCTION IF EXISTS st_hasbbox(geometry); DROP FUNCTION IF EXISTS cache_bbox(); DROP FUNCTION IF EXISTS st_cache_bbox(); DROP FUNCTION IF EXISTS transform_geometry(geometry,text,text,int); DROP FUNCTION IF EXISTS collector(geometry, geometry); DROP FUNCTION IF EXISTS st_collector(geometry, geometry); DROP FUNCTION IF EXISTS geom_accum (geometry[],geometry); DROP FUNCTION IF EXISTS st_geom_accum (geometry[],geometry); DROP FUNCTION IF EXISTS collect_garray (geometry[]); DROP FUNCTION IF EXISTS st_collect_garray (geometry[]); DROP FUNCTION IF EXISTS geosnoop(geometry); DROP FUNCTION IF EXISTS jtsnoop(geometry); DROP FUNCTION IF EXISTS st_noop(geometry); DROP FUNCTION IF EXISTS st_max_distance(geometry, geometry); �[7m(END) �[27m�[K �[K�[H�MDROP FUNCTION IF EXISTS st_box2d_right(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS st_box2d_left(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS st_box2d_overright(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS st_box2d_overleft(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_intersects(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_same(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_overlap(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_contained(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_contain(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_right(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_left(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_overright(box2d, box2d); �[H�MDROP FUNCTION IF EXISTS box2d_overleft(box2d, box2d); �[H�M-- Then drop old functions �[H�M �[H�MDROP AGGREGATE IF EXISTS st_accum_old(geometry); �[H�MDROP AGGREGATE IF EXISTS accum_old(geometry); �[H�MDROP AGGREGATE IF EXISTS st_geomunion(geometry); �[H�MDROP AGGREGATE IF EXISTS geomunion(geometry); �[H�M-- First drop old aggregates �[H�M �[H�M �[H�MCOMMIT; �[24;1H �[K:�[K �[K�[?1l�>�[?1049l-bash-3.2$ less /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.sql �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cpsql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.sql sfmaps �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[19Perl /usr/share/postgis90/new_postgis_restore.pl Usage: /usr/share/postgis90/new_postgis_restore.pl <dumpfile> Restore a custom dump (pg_dump -Fc) of a PostGIS-enabled database. First dump the old database: pg_dump -Fc <olddb> > <olddb.dmp> Then create a new database: createdb <newdb> Then install PostGIS in the new database: psql -f <path>/postgis.sql Finally, run this script on the old dump: /usr/share/postgis90/new_postgis_restore.pl <olddb.dmp> | psql <newdb> -bash-3.2$ perl /usr/share/postgis90/new_postgis_restore.pl /tmp/sfmaps.backup �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Kpsql psql (9.0.4) Type "help" for help. postgres=# alt���ALTER da��DATABASE sfmaps ren���RENAME TO sfmaps_prod; ALTER DATABASE postgres=# \q -bash-3.2$ psql ����erl /usr/share/postgis90/new_postgis_restore.pl Usage: /usr/share/postgis90/new_postgis_restore.pl <dumpfile> Restore a custom dump (pg_dump -Fc) of a PostGIS-enabled database. First dump the old database: pg_dump -Fc <olddb> > <olddb.dmp> Then create a new database: createdb <newdb> Then install PostGIS in the new database: psql -f <path>/postgis.sql Finally, run this script on the old dump: /usr/share/postgis90/new_postgis_restore.pl <olddb.dmp> | psql <newdb> -bash-3.2$ perl /usr/share/postgis90/new_postgis_restore.pl /tmp/sfmaps.backup | psql sfmaps_prod 22��[K> /tmp/restore.err -bash-3.2$ screen -bash: screen: command not found -bash-3.2$ screen�������[Kperl /usr/share/postgis90/new_postgis_restore.pl /tmp/sfmaps.backup | psql sfmaps_prod 2> /tmp/restore.err Converting /tmp/sfmaps.backup to ASCII on stdout... Reading list of functions to ignore... Writing manifest of things to read from dump file... Writing ASCII to stdout... SET SET SET SET SET SET SET CREATE TYPE SET SET CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 109 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 17 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 722 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 686 (1 row) CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 10845 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 98 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 203 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1537 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 2392 (1 row) CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE SET CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 362 (1 row) ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE Done. ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX ALTER TABLE ALTER TABLE REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT REVOKE REVOKE GRANT GRANT -bash-3.2$ less /tmp/restore.err �[?1049h�[?1h�= �[K�[7m/tmp/restore.err (END) �[27m�[K �[K...skipping... �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K...skipping... �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K...skipping... �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K�[?1l�>�[?1049l-bash-3.2$ psql sfmaps_prod psql (9.0.4) Type "help" for help. sfmaps_prod=# \d List of relations Schema | Name | Type | Owner --------+-----------------------------------------+----------+---------- public | basemap_bay_area_cities | table | postgres public | basemap_bay_area_cities_staging | table | postgres public | basemap_bay_area_cities_staging_id_seq | sequence | postgres public | basemap_citylots | table | postgres public | basemap_citylots_base | table | postgres public | basemap_citylots_base_staging | table | postgres public | basemap_citylots_staging | table | postgres public | basemap_county_line | table | postgres public | basemap_county_line_staging | table | postgres public | basemap_county_line_staging_id_seq | sequence | postgres public | basemap_ocean_bay_labels | table | postgres public | basemap_ocean_bay_labels_staging | table | postgres public | basemap_ocean_bay_labels_staging_id_seq | sequence | postgres public | basemap_poi | table | postgres public | basemap_poi_staging | table | postgres public | basemap_poi_staging_id_seq | sequence | postgres public | basemap_sfmaps_coast | table | postgres public | basemap_sfmaps_coast_staging | table | postgres public | basemap_sfmaps_coast_staging_id_seq | sequence | postgres public | basemap_stclines_arterials | table | postgres �[7m--More--�[27m public | basemap_stclines_arterials_staging | table | postgres public | basemap_stclines_city | table | postgres public | basemap_stclines_city_staging | table | postgres public | basemap_stclines_city_staging_id_seq | sequence | postgres public | basemap_stclines_freeway | table | postgres public | basemap_stclines_freeway_staging | table | postgres public | basemap_stclines_freeway_staging_id_seq | sequence | postgres public | basemap_stclines_highway | table | postgres public | basemap_stclines_highway_staging | table | postgres public | basemap_stclines_highway_staging_id_seq | sequence | postgres public | basemap_stclines_major | table | postgres public | basemap_stclines_major_staging | table | postgres public | basemap_stclines_major_staging_id_seq | sequence | postgres public | basemap_stclines_minor | table | postgres public | basemap_stclines_minor_staging | table | postgres public | basemap_stclines_minor_staging_id_seq | sequence | postgres public | basemap_stclines_non_paper | table | postgres public | basemap_stclines_non_paper_staging | table | postgres public | basemap_stclines_other | table | postgres public | basemap_stclines_other_staging | table | postgres public | basemap_stclines_ramp | table | postgres public | basemap_stclines_ramp_staging | table | postgres public | etl_bboxes | table | postgres �[7m--More--�[27m public | etl_bboxes_id_seq | sequence | postgres public | etl_db_backups | table | postgres public | etl_exceptions | table | postgres public | etl_exceptions_id_seq | sequence | postgres public | etl_jobs | table | postgres public | etl_tables | table | postgres public | etl_tables_id_seq | sequence | postgres public | geography_columns | view | postgres public | geometry_columns | table | postgres public | spatial_ref_sys | table | postgres (53 rows) sfmaps_prod=# select * from spatial_ref_sys ; srid | auth_name | auth_srid | srtext | proj4text --------+----------------------+-----------+------------------------------------ -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- �[7m--More--�[27m -------------------------------------------------------------------------------- ----+--------------------------------------------------------------------------- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ---- 4001 | EPSG | 4001 | GEOGCS["Unknown datum based upon th e Airy 1830 ellipsoid",DATUM["Not_specified_based_on_Airy_1830_ellipsoid",SPHERO ID["Airy 1830",6377563.396,299.3249646,AUTHORITY["EPSG","7001"]],AUTHORITY["EPSG ","6001"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.017453 29251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4001"]] | +proj=longlat +ellps=airy +no_defs 4002 | EPSG | 4002 | GEOGCS["Unknown datum based upon th e Airy Modified 1849 ellipsoid",DATUM["Not_specified_based_on_Airy_Modified_1849 _ellipsoid",SPHEROID["Airy Modified 1849",6377340.189,299.3249646,AUTHORITY["EPS G","7002"]],AUTHORITY["EPSG","6002"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","890 1"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG ","4002"]] �[7m--More--�[27m | +proj=longlat +a=6377340.189 +b=6356034.447938534 +no_defs 4003 | EPSG | 4003 | GEOGCS["Unknown datum based upon th e Australian National Spheroid",DATUM["Not_specified_based_on_Australian_Nationa l_Spheroid",SPHEROID["Australian National Spheroid",6378160,298.25,AUTHORITY["EP SG","7003"]],AUTHORITY["EPSG","6003"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","89 01"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPS G","4003"]] | +proj=longlat +ellps=aust_SA +no_defs 4004 | EPSG | 4004 | GEOGCS["Unknown datum based upon th e Bessel 1841 ellipsoid",DATUM["Not_specified_based_on_Bessel_1841_ellipsoid",SP HEROID["Bessel 1841",6377397.155,299.1528128,AUTHORITY["EPSG","7004"]],AUTHORITY ["EPSG","6004"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0. 01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4004"]] �[7m--More--�[27m | +proj=longlat +ellps=bessel +no_defs 4005 | EPSG | 4005 | GEOGCS["Unknown datum based upon th e Bessel Modified ellipsoid",DATUM["Not_specified_based_on_Bessel_Modified_ellip soid",SPHEROID["Bessel Modified",6377492.018,299.1528128,AUTHORITY["EPSG","7005" ]],AUTHORITY["EPSG","6005"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT ["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4005"] ] | +proj=longlat +a=6377492.018 +b=6356173.508712696 +no_defs 4006 | EPSG | 4006 | GEOGCS["Unknown datum based upon th e Bessel Namibia ellipsoid",DATUM["Not_specified_based_on_Bessel_Namibia_ellipso id",SPHEROID["Bessel Namibia (GLM)",6377483.865280419,299.1528128,AUTHORITY["EPS G","7046"]],AUTHORITY["EPSG","6006"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","890 1"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG ","4006"]] �[7m--More--�[27m | +proj=longlat +ellps=bess_nam +no_defs 4007 | EPSG | 4007 | GEOGCS["Unknown datum based upon th e Clarke 1858 ellipsoid",DATUM["Not_specified_based_on_Clarke_1858_ellipsoid",SP HEROID["Clarke 1858",6378293.645208759,294.2606763692606,AUTHORITY["EPSG","7007" ]],AUTHORITY["EPSG","6007"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT ["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4007"] ] | +proj=longlat +a=6378293.645208759 +b=6356617.987679838 +no_defs 4008 | EPSG | 4008 | GEOGCS["Unknown datum based upon th e Clarke 1866 ellipsoid",DATUM["Not_specified_based_on_Clarke_1866_ellipsoid",SP HEROID["Clarke 1866",6378206.4,294.9786982138982,AUTHORITY["EPSG","7008"]],AUTHO RITY["EPSG","6008"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree ",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4008"]] �[7m--More--�[27m �[Ksfmaps_prod=# \d List of relations Schema | Name | Type | Owner --------+-----------------------------------------+----------+---------- public | basemap_bay_area_cities | table | postgres public | basemap_bay_area_cities_staging | table | postgres public | basemap_bay_area_cities_staging_id_seq | sequence | postgres public | basemap_citylots | table | postgres public | basemap_citylots_base | table | postgres public | basemap_citylots_base_staging | table | postgres public | basemap_citylots_staging | table | postgres public | basemap_county_line | table | postgres public | basemap_county_line_staging | table | postgres public | basemap_county_line_staging_id_seq | sequence | postgres public | basemap_ocean_bay_labels | table | postgres public | basemap_ocean_bay_labels_staging | table | postgres public | basemap_ocean_bay_labels_staging_id_seq | sequence | postgres public | basemap_poi | table | postgres public | basemap_poi_staging | table | postgres public | basemap_poi_staging_id_seq | sequence | postgres public | basemap_sfmaps_coast | table | postgres public | basemap_sfmaps_coast_staging | table | postgres public | basemap_sfmaps_coast_staging_id_seq | sequence | postgres public | basemap_stclines_arterials | table | postgres �[7m--More--�[27m� �[Ksfmaps_prod=# d sfmaps_prod=# \q -bash-3.2$ export PAGER=less -bash-3.2$ export PAGER=less �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[1Ppsql sfmaps_prod psql (9.0.4) Type "help" for help. sfmaps_prod=# \d �[?1049h�[?1h�= List of relations Schema | Name | Type | Owner --------+-----------------------------------------+----------+---------- public | basemap_bay_area_cities | table | postgres public | basemap_bay_area_cities_staging | table | postgres public | basemap_bay_area_cities_staging_id_seq | sequence | postgres public | basemap_citylots | table | postgres public | basemap_citylots_base | table | postgres public | basemap_citylots_base_staging | table | postgres public | basemap_citylots_staging | table | postgres public | basemap_county_line | table | postgres public | basemap_county_line_staging | table | postgres public | basemap_county_line_staging_id_seq | sequence | postgres public | basemap_ocean_bay_labels | table | postgres public | basemap_ocean_bay_labels_staging | table | postgres public | basemap_ocean_bay_labels_staging_id_seq | sequence | postgres public | basemap_poi | table | postgres public | basemap_poi_staging | table | postgres public | basemap_poi_staging_id_seq | sequence | postgres public | basemap_sfmaps_coast | table | postgres public | basemap_sfmaps_coast_staging | table | postgres public | basemap_sfmaps_coast_staging_id_seq | sequence | postgres public | basemap_stclines_arterials | table | postgres :�[K �[K...skipping... public | basemap_stclines_major_staging_id_seq | sequence | postgres public | basemap_stclines_minor | table | postgres public | basemap_stclines_minor_staging | table | postgres public | basemap_stclines_minor_staging_id_seq | sequence | postgres public | basemap_stclines_non_paper | table | postgres public | basemap_stclines_non_paper_staging | table | postgres public | basemap_stclines_other | table | postgres public | basemap_stclines_other_staging | table | postgres public | basemap_stclines_ramp | table | postgres public | basemap_stclines_ramp_staging | table | postgres public | etl_bboxes | table | postgres public | etl_bboxes_id_seq | sequence | postgres public | etl_db_backups | table | postgres public | etl_exceptions | table | postgres public | etl_exceptions_id_seq | sequence | postgres public | etl_jobs | table | postgres public | etl_tables | table | postgres public | etl_tables_id_seq | sequence | postgres public | geography_columns | view | postgres public | geometry_columns | table | postgres public | spatial_ref_sys | table | postgres (53 rows) �[7m(END) �[27m�[K �[K�[?1l�>�[?1049lsfmaps_prod=# \��[Kselect * from ge�oo��[Kmetry_columns ; �[?1049h�[?1h�= f_table_catalog | f_table_schema | f_table_name | f_geome �try_column | coord_dimension | srid | type -----------------+----------------+------------------------------------+-------- �-----------+-----------------+--------+----------------- | public | basemap_stclines_highway_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_poi_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_bay_area_cities_staging | geometr �y | 2 | 900913 | GEOMETRY | public | basemap_sfmaps_coast_staging | geometr �y | 2 | 900913 | GEOMETRY | public | basemap_stclines_minor_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_ocean_bay_labels_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_other_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_non_paper_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_freeway_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_ramp_staging | geometr �:�[K �[K �[KESC���ESC�[KO�O�[KC�C�[H�[2J�[H f_table_name | f_geometry_column | coord_dimension | srid | -------------------------------+-------------------+-----------------+--------+- map_stclines_highway_staging | geometry | 2 | 900913 | map_poi_staging | geometry | 2 | 900913 | map_bay_area_cities_staging | geometry | 2 | 900913 | map_sfmaps_coast_staging | geometry | 2 | 900913 | map_stclines_minor_staging | geometry | 2 | 900913 | map_ocean_bay_labels_staging | geometry | 2 | 900913 | map_stclines_other_staging | geometry | 2 | 900913 | map_stclines_non_paper_staging | geometry | 2 | 900913 | map_stclines_freeway_staging | geometry | 2 | 900913 | map_stclines_ramp_staging | geometry | 2 | 900913 | map_stclines_arterials_staging | geometry | 2 | 900913 | map_stclines_city_staging | geometry | 2 | 900913 | map_stclines_major_staging | geometry | 2 | 900913 | map_bay_area_cities | geometry | 2 | 900913 | map_sfmaps_coast | geometry | 2 | 900913 | map_county_line | geometry | 2 | 900913 | map_ocean_bay_labels | geometry | 2 | 900913 | map_poi | geometry | 2 | 900913 | map_citylots | geometry | 2 | 900913 | map_citylots_base | geometry | 2 | 900913 | map_stclines_arterials | geometry | 2 | 900913 | :�[K �[K �[KESC���ESC�[KO�O�[KD�D�[H�[2J�[H f_table_catalog | f_table_schema | f_table_name | f_geome �try_column | coord_dimension | srid | type -----------------+----------------+------------------------------------+-------- �-----------+-----------------+--------+----------------- | public | basemap_stclines_highway_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_poi_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_bay_area_cities_staging | geometr �y | 2 | 900913 | GEOMETRY | public | basemap_sfmaps_coast_staging | geometr �y | 2 | 900913 | GEOMETRY | public | basemap_stclines_minor_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_ocean_bay_labels_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_other_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_non_paper_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_freeway_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_ramp_staging | geometr �:�[K �[Ky | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_arterials_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_city_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_major_staging | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_bay_area_cities | geometr �y | 2 | 900913 | GEOMETRY | public | basemap_sfmaps_coast | geometr �y | 2 | 900913 | GEOMETRY | public | basemap_county_line | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_ocean_bay_labels | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_poi | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_citylots | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_citylots_base | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_stclines_arterials | geometr �y | 2 | 900913 | MULTILINESTRING :�[K �[K | public | basemap_stclines_city | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_freeway | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_highway | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_major | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_minor | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_non_paper | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_other | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_ramp | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_citylots_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_citylots_base_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_county_line_staging | geometr �y | 2 | 900913 | MULTILINESTRING (32 rows) :�[K �[K �[KESC���ESC�[KO�O�[KC�C�[H�[2J�[Hmap_stclines_city | geometry | 2 | 900913 | map_stclines_freeway | geometry | 2 | 900913 | map_stclines_highway | geometry | 2 | 900913 | map_stclines_major | geometry | 2 | 900913 | map_stclines_minor | geometry | 2 | 900913 | map_stclines_non_paper | geometry | 2 | 900913 | map_stclines_other | geometry | 2 | 900913 | map_stclines_ramp | geometry | 2 | 900913 | map_citylots_staging | geometry | 2 | 900913 | map_citylots_base_staging | geometry | 2 | 900913 | map_county_line_staging | geometry | 2 | 900913 | �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K �[KESC���ESC�[KO�O�[KC�C�[H�[2J�[Hy | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTILINESTRING y | 2 | 900913 | MULTIPOLYGON y | 2 | 900913 | MULTIPOLYGON y | 2 | 900913 | MULTILINESTRING �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K �[KESC���ESC�[KO�O�[KD�D�[H�[2J�[Hmap_stclines_city | geometry | 2 | 900913 | map_stclines_freeway | geometry | 2 | 900913 | map_stclines_highway | geometry | 2 | 900913 | map_stclines_major | geometry | 2 | 900913 | map_stclines_minor | geometry | 2 | 900913 | map_stclines_non_paper | geometry | 2 | 900913 | map_stclines_other | geometry | 2 | 900913 | map_stclines_ramp | geometry | 2 | 900913 | map_citylots_staging | geometry | 2 | 900913 | map_citylots_base_staging | geometry | 2 | 900913 | map_county_line_staging | geometry | 2 | 900913 | �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K �[KESC���ESC�[KO�O�[KD�D�[H�[2J�[H | public | basemap_stclines_city | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_freeway | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_highway | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_major | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_minor | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_non_paper | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_other | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_ramp | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_citylots_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_citylots_base_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_county_line_staging | geometr �y | 2 | 900913 | MULTILINESTRING (32 rows) :�[K �[K �[KESC���ESC�[KO�O�[KD�D�[H�[2J�[H | public | basemap_stclines_city | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_freeway | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_highway | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_major | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_minor | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_non_paper | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_other | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_stclines_ramp | geometr �y | 2 | 900913 | MULTILINESTRING | public | basemap_citylots_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_citylots_base_staging | geometr �y | 2 | 900913 | MULTIPOLYGON | public | basemap_county_line_staging | geometr �y | 2 | 900913 | MULTILINESTRING (32 rows) :�[K �[K�[?1l�>�[?1049lsfmaps_prod=# select postgis_full_version(); �[?1049h�[?1h�= postgis_full_version � -------------------------------------------------------------------------------- �------------------------ POSTGIS="1.5.2" GEOS="3.2.2-CAPI-1.6.2" PROJ="Rel. 4.7.1, 23 September 2009" LI �BXML="2.6.26" USE_STATS (1 row) �[7m(END) �[27m�[K �[K�[?1l�>�[?1049lsfmaps_prod=# \q -bash-3.2$ ls /tmp �[00m�[00mmad-1_0-beta-1.backup�[00m �[00mrestore.err�[00m �[00msfmaps.backup.lst�[00m �[00;31mpgdg-centos-9.0-2.noarch.rpm�[00m �[00msfmaps.backup�[00m �[m-bash-3.2$ �OA���[K,s -bash: ,s: command not found -bash-3.2$ ls /tmp �[00m�[00mmad-1_0-beta-2.backup�[00m �[00mrestore.err�[00m �[00msfmaps.backup.lst�[00m �[00;31mpgdg-centos-9.0-2.noarch.rpm�[00m �[00msfmaps.backup�[00m �[m-bash-3.2$ createdb eas_prod -bash-3.2$ psql -l �[?1049h�[?1h�= List of databases Name | Owner | Encoding | Collation | Ctype | Access privileg �es -------------+----------+----------+------------+------------+------------------ �----- eas_prod | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | postgres | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | sfmaps_prod | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres � + | | | | | postgres=CTc/post �gres template1 | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | =c/postgres � + | | | | | postgres=CTc/post �gres (5 rows) �[7m(END) �[27m�[K �[K�[?1l�>�[?1049l-bash-3.2$ �[11@(reverse-i-search)`':�[C���-': psql -l����������f': psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis. .sql sfmaps�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �[2P-bash-3.2$ psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.sql sfmaps �[K�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�������[Keas_prod �[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Kd SET BEGIN CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TABLE CREATE TABLE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE CAST CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE AGGREGATE CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE FUNCTION CREATE TYPE CREATE FUNCTION CREATE CAST CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE VIEW CREATE FUNCTION CREATE CAST CREATE FUNCTION CREATE CAST CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CREATE OPERATOR CLASS CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION COMMIT DROP AGGREGATE DROP AGGREGATE DROP AGGREGATE DROP AGGREGATE DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION DROP FUNCTION -bash-3.2$ �[11@(reverse-i-search)`':�[C���r': psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.s sql eas_prod����[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Ce': psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.�[1@s�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[34Ps': less /tmp/restore.err �[K�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C��������������[1@t�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C��������������[1@o�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C -bash-3.2$ �[11@(reverse-i-search)`':�[C���r': psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.s sql eas_prod����[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Ce': psql -f /usr/pgsql-9.0/share/contrib/postgis-1.5/postgis.�[1@s�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C �[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[34Ps': less /tmp/restore.err �[K�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C��������������[1@t�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C��������������[1@o�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C����������perl /usr/share/postgis90/new_postgis_restore.pl /tmp/ /sfmaps.backup | psql sfmaps_prod 2> /tmp/restore.err������������[A -bash-3.2$ perl /usr/share/postgis90/new_postgis_restore.pl /tmp/sfmaps.backup | �[16P�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C���������������������[6P�[1@e�[1@a�[1@s�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | p�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | ps�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psq�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql �[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql e�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql ea�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql eas�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql eas_�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql eas_p�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql eas_pr�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql eas_pro�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C� | psql eas_prod�[1P�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cm | psql eas_pro�[1@d�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Ca | psql eas_pr�[1@o�[A�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[C�[Cd-1_0-beta-2.b�[19@ackup | psql eas_pr �[C�[C�[C�[C�[C�[C Converting /tmp/mad-1_0-beta-2.backup to ASCII on stdout... Reading list of functions to ignore... Writing manifest of things to read from dump file... Writing ASCII to stdout... SET SET SET SET SET SET SET CREATE TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE TYPE ALTER TYPE CREATE TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE TYPE ALTER TYPE CREATE TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE TYPE ALTER TYPE CREATE TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE TYPE ALTER TYPE CREATE TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE TYPE ALTER TYPE CREATE TYPE CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE FUNCTION ALTER FUNCTION CREATE AGGREGATE ALTER AGGREGATE CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS CREATE OPERATOR CLASS ALTER OPERATOR CLASS SET SET CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 225525 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval --------- 4190229 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE COMMENT CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 419455 (1 row) CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 419455 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 2 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 4 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 24 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 2 (1 row) CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 2 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 5 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 10 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 15 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE COMMENT CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 2 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 8 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 4 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 8 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 205720 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 18843 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 18873 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 50235 (1 row) CREATE TABLE ALTER TABLE CREATE SEQUENCE ALTER TABLE ALTER SEQUENCE setval -------- 1 (1 row) CREATE TABLE ALTER TABLE CREATE VIEW ALTER TABLE CREATE VIEW ALTER TABLE CREATE VIEW ALTER TABLE CREATE VIEW ALTER TABLE CREATE VIEW ALTER TABLE CREATE VIEW ALTER TABLE CREATE VIEW ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE Done. ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX CREATE INDEX ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE ALTER TABLE REVOKE REVOKE GRANT GRANT -bash-3.2$ less /tmp/restore.err �[?1049h�[?1h�= �[K�[7m/tmp/restore.err (END) �[27m�[K �[K...skipping... �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[1m~�[0m �[7m(END) �[27m�[K �[K�[?1l�>�[?1049l-bash-3.2$ psql eas_prod psql (9.0.4) Type "help" for help. eas_prod=# \d �[?1049h�[?1h�= List of relations Schema | Name | Type | Owner --------+-------------------------------------------+----------+---------- public | address_base | table | postgres public | address_base_address_base_id_seq | sequence | postgres public | address_keys | table | postgres public | address_keys_address_key_seq | sequence | postgres public | address_review | table | postgres public | address_review_address_review_id_seq | sequence | postgres public | address_source_data | table | postgres public | address_source_data_address_src_id_seq | sequence | postgres public | address_x_parcels | table | postgres public | addresses | table | postgres public | addresses_address_id_seq | sequence | postgres public | addresses_concurrency_id_seq | sequence | postgres public | auth_group | table | postgres public | auth_group_id_seq | sequence | postgres public | auth_group_permissions | table | postgres public | auth_group_permissions_id_seq | sequence | postgres public | auth_message | table | postgres public | auth_message_id_seq | sequence | postgres public | auth_permission | table | postgres public | auth_permission_id_seq | sequence | postgres :�[K �[K public | auth_user | table | postgres public | auth_user_groups | table | postgres public | auth_user_groups_id_seq | sequence | postgres public | auth_user_id_seq | sequence | postgres public | auth_user_user_permissions | table | postgres public | auth_user_user_permissions_id_seq | sequence | postgres public | building_footprints | table | postgres public | building_footprints_bf_id_seq | sequence | postgres public | change_requests | table | postgres public | change_requests_change_request_id_seq | sequence | postgres public | cr_address_base | table | postgres public | cr_address_base_cr_address_base_id_seq | sequence | postgres public | cr_address_x_parcels | table | postgres public | cr_address_x_parcels_id_seq | sequence | postgres public | cr_addresses | table | postgres public | cr_addresses_cr_address_id_seq | sequence | postgres public | cr_change_requests | table | postgres public | cr_change_requests_change_request_id_seq | sequence | postgres public | d_address_disposition | table | postgres public | d_address_disposition_disposition_id_seq | sequence | postgres public | d_address_review_types | table | postgres public | d_address_review_types_review_type_id_seq | sequence | postgres public | d_change_request_status | table | postgres :�[K �[K public | d_data_sources | table | postgres public | d_data_sources_data_source_id_seq | sequence | postgres public | d_floors | table | postgres public | d_unit_type | table | postgres public | django_admin_log | table | postgres public | django_admin_log_id_seq | sequence | postgres public | django_content_type | table | postgres public | django_content_type_id_seq | sequence | postgres public | django_session | table | postgres public | django_site | table | postgres public | django_site_id_seq | sequence | postgres public | etl_bboxes | table | postgres public | etl_bboxes_id_seq | sequence | postgres public | etl_db_backups | table | postgres public | etl_exceptions | table | postgres public | etl_exceptions_id_seq | sequence | postgres public | etl_jobs | table | postgres public | etl_tables | table | postgres public | etl_tables_id_seq | sequence | postgres public | geography_columns | view | postgres public | geometry_columns | table | postgres public | landmarks | table | postgres public | parcel_blocks | table | postgres :�[K �[K public | parcel_blocks_parcel_block_id_seq | sequence | postgres public | parcels | table | postgres public | parcels_parcel_id_seq | sequence | postgres public | parcels_staging | table | postgres public | parcels_work | table | postgres public | parcels_work_id_seq | sequence | postgres public | ports_facilities | table | postgres public | ports_facilities_ports_id_seq | sequence | postgres public | spatial_ref_sys | table | postgres public | street_address_ranges | table | postgres public | street_address_ranges_range_id_seq | sequence | postgres public | street_segments | table | postgres public | street_segments_staging | table | postgres public | street_segments_street_segment_id_seq | sequence | postgres public | street_segments_work | table | postgres public | street_segments_work_id_seq | sequence | postgres public | streetnames | table | postgres public | streetnames_staging | table | postgres public | streetnames_streetname_id_seq | sequence | postgres public | streetnames_work | table | postgres public | streetnames_work_id_seq | sequence | postgres public | v_base_address_search | view | postgres public | vw_address_reviews | view | postgres :�[K �[K...skipping... public | spatial_ref_sys | table | postgres public | street_address_ranges | table | postgres public | street_address_ranges_range_id_seq | sequence | postgres public | street_segments | table | postgres public | street_segments_staging | table | postgres public | street_segments_street_segment_id_seq | sequence | postgres public | street_segments_work | table | postgres public | street_segments_work_id_seq | sequence | postgres public | streetnames | table | postgres public | streetnames_staging | table | postgres public | streetnames_streetname_id_seq | sequence | postgres public | streetnames_work | table | postgres public | streetnames_work_id_seq | sequence | postgres public | v_base_address_search | view | postgres public | vw_address_reviews | view | postgres public | vw_address_search | view | postgres public | vw_base_address_x_parcels | view | postgres public | vw_base_addresses | view | postgres public | vw_blocklot_x_address | view | postgres public | vw_streets_for_new_address | view | postgres public | zones | table | postgres (95 rows) �[7m(END) �[27m�[K �[K�[?1l�>�[?1049leas_prod=# select * from ge�ometry_columns ; �[?1049h�[?1h�= f_table_catalog | f_table_schema | f_table_name | f_geometry_column �| coord_dimension | srid | type -----------------+----------------+-------------------------+------------------- �+-----------------+------+----------------- | public | cr_address_base | geometry �| 2 | 2227 | MULTIPOINT | public | parcels | geometry �| 2 | 2227 | MULTIPOLYGON | public | parcels_staging | geometry �| 2 | 2227 | MULTIPOLYGON | public | street_segments | geometry �| 2 | 2227 | MULTILINESTRING | public | street_segments_staging | geometry �| 2 | 2227 | MULTILINESTRING | public | zones | geometry �| 2 | 2227 | MULTIPOLYGON | public | building_footprints | geometry �| 2 | 2227 | MULTIPOLYGON | public | parcel_blocks | geometry �| 2 | 2227 | POLYGON | public | parcel_blocks | pt_geometry �| 2 | 2227 | POINT | public | address_base | geometry �:�[K �[K| 2 | 2227 | POINT | public | vw_address_reviews | geometry �| 2 | 2227 | POINT | public | etl_bboxes | geometry �| 2 | 2227 | POLYGON (12 rows) �[7m(END) �[27m�[K �[K� �[K�[7m(END) �[27m�[K �[K� �[K�[7m(END) �[27m�[K �[K�[H�M | public | parcels | geometry �[H�M| 2 | 2227 | MULTIPOINT �[H�M | public | cr_address_base | geometry �[H�M+-----------------+------+----------------- �[H�M-----------------+----------------+-------------------------+-------------------�[H�M| coord_dimension | srid | type �[H�M f_table_catalog | f_table_schema | f_table_name | f_geometry_column �[24;1H �[K:�[K �[K�[?1l�>�[?1049leas_prod=# ana���ANALYZE ;����������[K �[11@(reverse-i-search)`': (reverse-i-search)`': ���s': select * from geometry_columns ;��� (reverse-i-search)`s�[1@e (reverse-i-search)`se': ����[1@l (reverse-i-search)`sel': ����[1@e (reverse-i-search)`sele': (reverse-i-search)`sele': select �[2Ppostgis_full_version(); (reverse-i-search)`sele': (reverse-i-search)`sele': select * from geometry_columns ; (reverse-i-search)`sele': (reverse-i-search)`sele': select * from �[1Pspatial_ref_sy (reverse-i-search)`sele': eas_prod=# �[11@(reverse-i-search)`': (reverse-i-search)`': ���g': select * from geometry_columns ;������������������������������������[1@e (reverse-i-search)`ge': select * from ������������������[1@o (reverse-i-search)`geo': select * from ������������������[1@m (reverse-i-search)`geom': select * from eas_prod=# �[11@(reverse-i-search)`': (reverse-i-search)`': eas_prod=# �[11@(reverse-i-search)`': (reverse-i-search)`': eas_prod=# ana���ANALYZE ; ANALYZE eas_prod=# \c sfmaps_prod You are now connected to database "sfmaps_prod". sfmaps_prod=# \c sfmaps_prod ����������������[6PANALYZE ; ANALYZE sfmaps_prod=# \q -bash-3.2$ logout �]0;root@prod-db:/data/9.0/data�[root@prod-db data]# exit Script done on Thu 07 Jul 2011 01:12:17 PM PDT
Add Comment