Re: statistics about tamp tables ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: statistics about tamp tables ...
Date
Msg-id 14939.1069860339@sss.pgh.pa.us
Whole thread Raw
In response to statistics about tamp tables ...  (Hans-Jürgen Schönig <postgres@cybertec.at>)
Responses Re: statistics about tamp tables ...
List pgsql-hackers
Hans-Jürgen Schönig <postgres@cybertec.at> writes:
> Recently I have come across a simple issue which made me think about it.
> When we create a tmp table (SELECT INTO, CREATE TABLE AS) the planner 
> won't know anything about its content after creating it.

Run ANALYZE on the temp table, if you intend to use it enough to justify
gathering stats about it.  VACUUM is more work than needed.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Shridhar Daithankar
Date:
Subject: Re: Providing anonymous mmap as an option of sharing memory
Next
From: ow
Date:
Subject: Re: pg_restore and create FK without verification check