| From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
|---|---|
| To: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: autovacuum: found orphan temp table |
| Date: | 2014-07-02 15:16:51 |
| Message-ID: | 20140702151651.GB7340@eldon.alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Joshua D. Drake wrote:
Hi,
> While it is obvious what is happening in $SUBJECT as well as
> reasonably obvious why it can happen. What isn't obvious is what to
> do about it. It seems we log in as a super user and drop the temp
> tables.
>
> However, I would think if we know that it is orphaned that
> autovacuum should just clean those up?
As far as I recall, if you wait long enough it will drop them. Looking
at the code: yes, it's forcibly dropped when it becomes a problem for
xid wraparound. Of course, you can drop it as superuser as well; that
will save you a few months of WARNING spam ...
Cheers
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2014-07-02 15:18:05 | Re: autovacuum: found orphan temp table |
| Previous Message | Joshua D. Drake | 2014-07-02 15:13:03 | autovacuum: found orphan temp table |