Re: Can't take base back up with Postgres 9.0 on Solaris 10

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: "dan(dot)m(dot)harris" <daniel(dot)harris(at)metaswitch(dot)com>
Subject: Re: Can't take base back up with Postgres 9.0 on Solaris 10
Date: 2010-10-28 14:37:57
Message-ID: 201010280737.57290.adrian.klaver@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thursday 28 October 2010 5:07:06 am dan.m.harris wrote:
> Hi Thom, thanks for your reply. Here's my psql output:
>
> bash-3.00$ bin/psql
> psql (9.0.1, server 8.1.4)
> WARNING: psql version 9.0, server version 8.1.
> Some psql features might not work.
> Type "help" for help.
>
> postgres=# SHOW wal_level;
> ERROR: unrecognized configuration parameter "wal_level"
> postgres=# SELECT pg_start_backup('basebackup', true);
> ERROR: function pg_start_backup("unknown", boolean) does not exist
> HINT: No function matches the given name and argument types. You may need
> to add explicit type casts.
> postgres=# SELECT pg_start_backup('basebackup');
> ERROR: WAL archiving is not active
> HINT: archive_command must be defined before online backups can be made
> safely.
>
>
> The mismatched server version number doesn't look right! Note that this is
> a Postgres 9.0 tarball I've extracted onto a server which already has
> Postgres 8.1.4 installed.
>
> Any thoughts from anybody? Thanks.
>

In my previous response I was assuming you where replacing one version with the
other. More brain cells have woken up and I realized you might also be talking
about running two instances on the same machine at the same time. That is
possible but you will need to have each instance run on a different port in
postgresql.conf (port=? where 5432 is the default). You will also need to make
sure you are using the right program with the right cluster. Currently when you
run psql you are calling the one installed with 9.0.1 which is connecting to
the 8.1.4 cluster, which at a guess is probably running on port 5432. You have
the choice of either specifying full paths to the appropriate binary or
creating sym links.

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2010-10-28 14:40:25 Re: Printing command string passed to EXECUTE command in plpgsql (after argument resolution)
Previous Message dan.m.harris 2010-10-28 14:30:34 Re: Can't take base back up with Postgres 9.0 on Solaris 10