Re: pg_class.relistemp - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: pg_class.relistemp
Date
Msg-id C57198A6-E8D8-4711-B821-8984A733EF47@kineticode.com
Whole thread Raw
In response to Re: pg_class.relistemp  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: pg_class.relistemp
Re: pg_class.relistemp
List pgsql-hackers
On Jul 13, 2011, at 12:57 PM, Kevin Grittner wrote:

> create or replace function relistemp(rel pg_class)
>  returns boolean language sql immutable strict as
>  $$select $1.relpersistence = 't';$$;
> 
> Just don't forget to use the table name or alias in front of it... :-)

Oh, nice hack. How far back does that work (pgTAP runs on 8.0 and higher)?

Thanks,

David



pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Single pass vacuum - take 1
Next
From: "David E. Wheeler"
Date:
Subject: Re: Full GUID support