Re: tracking down temp files - Mailing list pgsql-general

From Bruce Momjian
Subject Re: tracking down temp files
Date
Msg-id 200311191634.hAJGYSs22695@candle.pha.pa.us
Whole thread Raw
In response to Re: tracking down temp files  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-general
Robert Treat wrote:
> On Monday 17 November 2003 21:38, Bruce Momjian wrote:
> > Robert Treat wrote:
> > > is there some way to determine the query that creates the file
> > > pgsql_tmp15041.0? i thought maybe 15041 was the procpid but apparently
> > > not...  anyone know?
> >
> > It is the proc id.  Perhaps the backend crashed.  If so, a postmaster
> > restart clears those sort directories.
>
> Hmm...  when I see those files created I look in pg_stat_activity, but I don't
> see any corresponding query... shouldn't I?

Yes, you should unless the backend died unexpectedly in which case they
would be left around until postmaster restart.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [ADMIN] Point-in-time data recovery - v.7.4
Next
From: Herbert Liechti
Date:
Subject: Wanted: Trick for granting permissions to users with hyphens