Re: [GENERAL] Time of previous REINDEX execution..

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Anoo Pillai <anoo(dot)postgresql(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] Time of previous REINDEX execution..
Date: 2007-05-08 17:56:44
Message-ID: 1178647004.24902.32.camel@dogma.v10.wvs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Tue, 2007-05-08 at 13:21 +0100, Anoo Pillai wrote:
> Hi,
>
> How to get the time at which the previous REINDEX command was run?
>

I don't think that information is explicitly stored. You can log
statements like that and that might help in the future.

If you really need to know, a REINDEX changes the relfilenode, so you
can see the creation time of the file in the data directory
corresponding to the current indexes of the table. That will probably be
the last time REINDEX was run.

Does that help?

Regards,
Jeff Davis

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alexander B. 2007-05-08 18:16:03 Re: Autostartup
Previous Message Andreas 'ads' Scherbaum 2007-05-08 15:46:56 Re: 8.3 and 8.4 feature list

Browse pgsql-general by date

  From Date Subject
Next Message Austin Winstanley 2007-05-08 18:26:33 PostgreSql embedded available?
Previous Message Jeff Davis 2007-05-08 17:51:59 Re: PG on Debian 4.0.x ?