Re: pg_upgrade failed for 9.0 to 9.2

From: Vibhor Kumar <vibhor(dot)kumar(at)enterprisedb(dot)com>
To: AI Rumman <rummandba(at)gmail(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_upgrade failed for 9.0 to 9.2
Date: 2013-01-13 19:17:34
Message-ID: E9B9456B-BD14-431E-82D5-C798D10A20C8@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Jan 13, 2013, at 1:36 PM, AI Rumman <rummandba(at)gmail(dot)com> wrote:

> 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.

Reason is: From postgreSQL 9.2 onwards, pg_stat_activity.procpid is renamed as pg_stat_activity.pid.
http://www.postgresql.org/docs/9.2/interactive/release-9-2.html

Thanks & Regards,
Vibhor Kumar
EnterpriseDB Corporation
The Enterprise PostgreSQL Company
Blog:http://vibhork.blogspot.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2013-01-13 19:26:33 9.2 upgrade glitch with search_path
Previous Message Guillaume Lelarge 2013-01-13 18:45:12 Re: Bug in PgAdmin 1.16.1