Re: pg_upgrade from 8.3.4 issue

From: Justin Arnold <jharnold81(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Merlin Moncure <mmoncure(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: pg_upgrade from 8.3.4 issue
Date: 2011-08-30 20:58:26
Message-ID: CAMr08oDdqqtT8OAF=3qHFj7R1Ma7e_WoZZ-ouRmWfauvn=_GZw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Tom and Merlin, I removed that logic from check.c, rebuilt, and it
worked fine.

On Tue, Aug 30, 2011 at 2:47 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Merlin Moncure <mmoncure(at)gmail(dot)com> writes:
> > It looks like some time after 8.3 was released that function was
> > changed from returning 'record'. This is making me wonder if the
> > upgrade process was ever tested/verified on 8.3.
>
> Not lately, apparently :-(
>
> > I absolutely do not
> > advise doing this without taking a lot of precautions, but you might
> > force your way past that step with:
>
> I think it'd be a lot safer to modify (or just remove) the test in
> pg_upgrade. It looks like a one-liner:
>
> prep_status("Checking for prepared transactions");
>
> res = executeQueryOrDie(conn,
> "SELECT * "
> "FROM pg_catalog.pg_prepared_xact()");
>
> if (PQntuples(res) != 0)
> pg_log(PG_FATAL, "The %s cluster contains prepared transactions\n",
> CLUSTER_NAME(cluster));
>
> There's no reason at all for this code to not use the published API,
> which is the pg_prepared_xacts system view.
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2011-08-30 21:17:16 Re: pg_upgrade from 8.3.4 issue
Previous Message Jeff Ross 2011-08-30 20:51:29 FATAL: terminating connection due to conflict with recovery