From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Ryan MYJ <ryanmyj(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Hi All, |
Date: | 2023-02-21 14:51:14 |
Message-ID: | 3952333.1676991074@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ryan MYJ <ryanmyj(at)gmail(dot)com> writes:
> Currently I'm working on upgrading a postgresql version from 9.3 to 12. The
> database size is around 700G.
> I finished the pg_upgrade process but when I ran 'analyze_new_cluster.sh'
> it stucked at the first log 'vacuumdb: processing database "otdb":
> Generating minimal optimizer statistics (1 target)'.
> Then I checked the active query, the following query has been running for
> several hours:
> pid | db | start | lap |
> query
> ---------+-----------+-------------------------------+-----------------+------------------------------
> 1822933 | otdb | 2023-02-18 03:02:36.035755+08 | 04:56:41.408329 |
> ANALYZE pg_catalog.pg_class;
You omitted the pg_stat_activity columns that could give some insight
into why this is waiting. The first thing I'd think of though is that
it's blocked waiting for a lock, in which case looking into pg_locks
to see what is blocking it could help.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2023-02-21 15:29:28 | Re: can't get psql authentication against Active Directory working |
Previous Message | Tomas Pospisek | 2023-02-21 14:38:47 | Re: can't get psql authentication against Active Directory working |