Re: loading pg_description ... FATAL: duplicate key violates - Mailing list pgsql-general

From Richard Huxton
Subject Re: loading pg_description ... FATAL: duplicate key violates
Date
Msg-id 43E9D39F.1060805@archonet.com
Whole thread Raw
In response to Re: loading pg_description ... FATAL: duplicate key violates unique constraint "pg_description_o_c_o_index"  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
List 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

pgsql-general by date:

Previous
From: "surabhi.ahuja"
Date:
Subject: Re: loading pg_description ... FATAL: duplicate key violates unique constraint "pg_description_o_c_o_index"
Next
From: David Goodenough
Date:
Subject: Problem with sequence table