Re: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Stephen Froehlich <s(dot)froehlich(at)cablelabs(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?
Date: 2018-01-21 06:21:52
Message-ID: CAKJS1f_DxmRLRP+oG_+Wc8GoKWW8w3O0e_7ANhpdDR9XYSaWtg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-novice

On 20 January 2018 at 18:50, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Stephen Froehlich <s(dot)froehlich(at)cablelabs(dot)com> writes:
>> Are custom statistics in PG10 retained in LIKE (INCLUDING ALL) or do I need to recreate the statistics by hand each time I create a new table?
>
> LIKE doesn't know about those, no. Perhaps it should.

Agreed. ALL does not mean MOST.

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-01-21 06:43:18 Re: [HACKERS] UPDATE of partition key
Previous Message David Rowley 2018-01-21 06:16:38 Re: [Sender Address Forgery]Re: pg_(total_)relation_size and partitioned tables

Browse pgsql-novice by date

  From Date Subject
Next Message Stephen Froehlich 2018-01-21 15:47:35 RE: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?
Previous Message Tom Lane 2018-01-20 05:50:19 Re: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?