Thanks for the reply. After I installed Postgres, I tried to restore a database that contains characters with accents and I
got some errors.
Could you please advise me on where I can find information on encoding. My understanding of clustering is having more than one server, which is not my case.
well, in postgresql, a cluster is meant - a bunch of databases - actually the databases of the instalation (I'm not sure if its clear )
actualy what initdb creates in postgresql is called a cluster of databases
so you have to do
initdb --locale=XXXX
(I don't know your correct locale, you better check your previous version what locale used) the locale just solves some of the problems (so you may not need this)
then when you create the database you should use
createdb -E UTF-8 new_database
(but again, I don't know which is the correct encoding for you :-()
the encoding will help you to see the characters as expected
the locale is helping so that ORDER BY some_text_field works correct, and UPPER/LOWER work as expect etc.
When I performed the restore I did not get the errors I was experiencing before.
However, when I tried to install PGAdmin III (using rpm -Uvh pgadmin3-1.4.0-1.i686.rpm), to view the restored data, I am getting a Failed dependencies error:
postgresql is needed by pgadmin3-1.4.0-1.i686
NB. I installed PostgreSQL as follows:
gunzip postgresql-8.0.7.tar.gz
tar xf postgresql-8.0.7.tar
cd /usr/local/postgresql-8.0.7
./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb --locale=pt_PT -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb -E SQL_ASCII test
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.