| From: | Rob Sargent <robjsargent(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: oldest xmin is far in the past :: BUT xmin is not available in system |
| Date: | 2022-04-19 06:56:23 |
| Message-ID: | 9b2148e7-0925-9516-9dad-228c22163a1d@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 4/19/22 00:06, David G. Johnston wrote:
>
>
> On Monday, April 18, 2022, bhargav kamineni <kbn98406(at)gmail(dot)com> wrote:
>
> Hi Team,
>
> It seems vacuum is behaving somewhat weird on postgres database ,
> observing below HINTS on the vacuum logs
>
> WARNING: oldest xmin is far in the past
>
> HINT: Close open transactions soon to avoid wraparound problems.
>
> You might also need to commit or roll back old prepared
> transactions, or drop stale replication slots.
>
>
> What version?
>
> What other databases are present?
>
> Others can give better (more detailed/nuanced) guidance but if you can
> just start vacuuming every table in every database manually, you
> probably should just do that. Vacuum freeze specifically.
>
> David J.
>
|This site has lots of useful queries for this sort of issue:
https://www.shanelynn.ie/postgresql-find-slow-long-running-and-blocked-queries.
I think you're looking for a very old transaction that is probably not
going to finish, must be terminated.
|
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pól Ua L. | 2022-04-19 07:34:33 | Joining with calendar table |
| Previous Message | bhargav kamineni | 2022-04-19 06:37:09 | Re: oldest xmin is far in the past :: BUT xmin is not available in system |