Re: loading pg_description ... FATAL: duplicate key violates

From: Richard Huxton <dev(at)archonet(dot)com>
To: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: loading pg_description ... FATAL: duplicate key violates
Date: 2006-02-08 11:18:55
Message-ID: 43E9D39F.1060805@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

surabhi.ahuja wrote:
> actually
>
> i had a version existing earlier. guess it was installed from an rpm..
> so ther are binaries like postmaster inside /usr/bin itself
>
> and after i installed /8.0.1, ther are binaries even in /usr/local/pgsql/bin.
>
> how should i uninstall the whole thing and begin a fresh instaallation of 8.0.6.
>
> i ll delete the directory postgresql-8.0.1
>
> and i shall also remove usr/local/pgsql
>
> now how shd i uninstall that rpm so that the binaries in /usr/bin also get removed

Surabhi - can I suggest you just stick to the RPMs? If you're not sure
how to remove RPMs then you'll want to move slowly until you have more
experience of Linux system administration.

You almost certainly have some sort of graphical package-manager if
you're running a recent redhat/suse and that will give you the most
recent packaged version for your distribution.

If you want something not provided by your distribution though...

1. pg_dump all your existing databases (just to be safe) and check that
you know how to restore them and that they contain data.
2. Go to http://www.postgresql.org/ and look for "Latest Releases"
Click the "binary" link next to "8.0.6"
3. Click linux, rpms, and work down to your version of redhat/fedora.
4. You'll want these:
postgresql-8.0.6-1PGDG.i686.rpm
postgresql-server-8.0.6-1PGDG.i686.rpm
postgresql-docs-8.0.6-1PGDG.i686.rpm
postgresql-libs-8.0.6-1PGDG.i686.rpm
and possibly one or more of:
postgresql-contrib-8.0.6-1PGDG.i686.rpm
postgresql-jdbc-8.0.6-1PGDG.i686.rpm
postgresql-pl-8.0.6-1PGDG.i686.rpm
Download them all to a suitable directory and then
5. rpm -Uvh postgresql*rpm
This should upgrade your existing installation and then you can
restore your databases.
6. Get a good book on linux administration - plenty out there and you
can check reviews online. Set aside a few days to spend making sure you
understand how to manage RPMs, backups, the root user, admin tools like
ps/top/lsof etc.

HTH
--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Goodenough 2006-02-08 12:40:39 Problem with sequence table
Previous Message surabhi.ahuja 2006-02-08 10:51:32 Re: loading pg_description ... FATAL: duplicate key violates unique constraint "pg_description_o_c_o_index"