| 1 | <?xml version="1.0" encoding="UTF-8"?> |
1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
2 | <!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
| 3 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/postgres-howto.xml,v 1.10 2012/05/04 06:44:35 nightmorph Exp $ --> |
3 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/postgres-howto.xml,v 1.11 2012/06/13 09:10:59 nightmorph Exp $ --> |
| 4 | |
4 | |
| 5 | <guide> |
5 | <guide> |
| 6 | <title>PostgreSQL Quick Start Guide</title> |
6 | <title>PostgreSQL Quick Start Guide</title> |
| 7 | |
7 | |
| 8 | <author title="Author"> |
8 | <author title="Author"> |
| … | |
… | |
| 21 | |
21 | |
| 22 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
22 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 23 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
23 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 24 | <license/> |
24 | <license/> |
| 25 | |
25 | |
| 26 | <version>10</version> |
26 | <version>11</version> |
| 27 | <date>2012-05-04</date> |
27 | <date>2012-06-13</date> |
| 28 | |
28 | |
| 29 | <chapter> |
29 | <chapter> |
| 30 | <title>Introduction</title> |
30 | <title>Introduction</title> |
| 31 | <section> |
31 | <section> |
| 32 | <title>A Little Bit About PostgreSQL</title> |
32 | <title>A Little Bit About PostgreSQL</title> |
| … | |
… | |
| 667 | <comment>(Stop the servers you're going to migrate from and to.)</comment> |
667 | <comment>(Stop the servers you're going to migrate from and to.)</comment> |
| 668 | # <i>/etc/init.d/postgresql-8.4 stop</i> |
668 | # <i>/etc/init.d/postgresql-8.4 stop</i> |
| 669 | # <i>/etc/init.d/postgresql-9.0 stop</i> |
669 | # <i>/etc/init.d/postgresql-9.0 stop</i> |
| 670 | # <i>ln -s /etc/postgresql-8.4/*.conf /var/lib/postgresql/8.4/data/</i> |
670 | # <i>ln -s /etc/postgresql-8.4/*.conf /var/lib/postgresql/8.4/data/</i> |
| 671 | # <i>ln -s /etc/postgresql-9.0/*.conf /var/lib/postgresql/9.0/data/</i> |
671 | # <i>ln -s /etc/postgresql-9.0/*.conf /var/lib/postgresql/9.0/data/</i> |
|
|
672 | |
|
|
673 | <comment>(Check available versions, then select yours)</comment> |
|
|
674 | # <i>eselect postgresql list</i> |
|
|
675 | # <i>eselect postgresql set 9.0</i> |
| 672 | |
676 | |
| 673 | <comment>(Change the method of database user 'postgres' to trust on local |
677 | <comment>(Change the method of database user 'postgres' to trust on local |
| 674 | connections on all databases.)</comment> |
678 | connections on all databases.)</comment> |
| 675 | # <i>nano -w /etc/postgresql-8.4/pg_hba.conf</i> |
679 | # <i>nano -w /etc/postgresql-8.4/pg_hba.conf</i> |
| 676 | # <i>nano -w /etc/postgresql-9.0/pg_hba.conf</i> |
680 | # <i>nano -w /etc/postgresql-9.0/pg_hba.conf</i> |