pg_upgrade failed for 9.0 to 9.2

From: AI Rumman <rummandba(at)gmail(dot)com>
To: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: pg_upgrade failed for 9.0 to 9.2
Date: 2013-01-13 18:36:11
Message-ID: CAGoODpc9bD1wpa4K74NbXqVOR+X0LASATFZ9UCV81L8um+OzcA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

When I was upgrading database from 9.0 to 9.2 using pg_upgrade, I got the
error:

CREATE VIEW stats_slowest_queries AS
SELECT pg_stat_activity.procpid, (('now'::text)::timestamp(6) with time
zone - pg_stat_activity.query_start) AS execution_time,
pg_stat_activity.current_query FROM pg_stat_activity WHERE
(pg_stat_activity.current_query !~~ '<IDLE%'::text) ORDER BY
(('now'::text)::timestamp(6) with time zone - pg_stat_activity.query_start)
DESC;
psql:pg_upgrade_dump_db.sql:498897: ERROR: column pg_stat_activity.procpid
does not exist
LINE 2: SELECT pg_stat_activity.procpid, (('now'::text)::timesta...
^
It failed.

Could you let me know why?

Thanks.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2013-01-13 18:45:12 Re: Bug in PgAdmin 1.16.1
Previous Message Shaun Thomas 2013-01-13 18:27:42 Linux Distribution Preferences?