installing_postgresql_on_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
installing_postgresql_on_debian [2007/04/16 23:33] – Add UNICODE flag to installing PostgreSQL on Debian dbs | installing_postgresql_on_debian [2010/09/06 13:25] (current) – Delete obsolete page dbs | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Installing Postgresql on Debian ===== | ||
- | << | ||
- | ==== Install Base Packages ==== | ||
- | To install the postgresql packages on debian. | ||
- | apt-get install postgresql-8.1 postgresql-contrib-8.1 postgresql-doc-8.1 postgresql-plperl-8.1 postgresql-server-dev-8.1 | ||
- | Explanation: | ||
- | * postgresql-8.1 - This is the core package that contains the program. | ||
- | * postgresql-contrib-8.1 - The contains contributed utilites and stored procedures. | ||
- | * postgresql-doc-8.1 - The documentation. | ||
- | * postgresql-plperl-8.1 - Perl procedural language. | ||
- | * postgresql-server-dev-8.1 - Dev files. | ||
- | ---- | ||
- | |||
- | ==== Installing Contrib packages ==== | ||
- | Switch to user postgres for any of the following commands | ||
- | # su postgres | ||
- | |||
- | **[[http:// | ||
- | bash# psql template1 < / | ||
- | |||
- | **[[http:// | ||
- | bash# psql template1 < / | ||
- | |||
- | ---- | ||
- | |||
- | ==== Create Database and add languages ==== | ||
- | |||
- | Add the [[http:// | ||
- | bash# createlang plpgsql -d template1 | ||
- | Create the database evegreen. | ||
- | bash# createdb -E UNICODE evergreen | ||
- | Add plperl and plperlu languages to evergreen. | ||
- | bash# createlang plperl -d evergreen | ||
- | bash# createlang plperlu -d evergreen | ||
- | |||
- | ---- | ||
- | |||
- | ==== Drop and recreate database ==== | ||
- | |||
- | If you need to start over with a fresh database these commands will drop the current evergreen and recreate it. | ||
- | bash# dropdb evergreen | ||
- | bash# createdb -E UNICODE evergreen | ||
- | bash# createlang plperl -d evergreen | ||
- | bash# createlang plperlu -d evergreen | ||
- | |||
- | ---- | ||
- | |||
- | ==== Change db user password ==== | ||
- | bash# psql | ||
- | bash# alter user postgres password 'my password'; | ||
- | bash# \q | ||
- | |||
- | << |
installing_postgresql_on_debian.1176780817.txt.gz · Last modified: 2022/02/10 13:33 (external edit)