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

Поиск
Список
Период
Сортировка
От Stephen Froehlich
Тема RE: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?
Дата
Msg-id CY1PR0601MB1927F8282656E5544FBE0FBAE5ED0@CY1PR0601MB1927.namprd06.prod.outlook.com
обсуждение исходный текст
Ответ на Re: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-novice
Lol ... However sometimes, especially with an obscure new feature, it does :).

-----Original Message-----
From: David Rowley [mailto:david.rowley@2ndquadrant.com] 
Sent: Saturday, January 20, 2018 11:22 PM
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Stephen Froehlich <s.froehlich@cablelabs.com>; pgsql-novice@postgresql.org
Subject: Re: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?

On 20 January 2018 at 18:50, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Stephen Froehlich <s.froehlich@cablelabs.com> writes:
>> Are custom statistics in PG10 retained in LIKE (INCLUDING ALL) or do I need to recreate the statistics by hand each
timeI 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

В списке pgsql-novice по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: STATISTICS retained in CREATE TABLE ... LIKE (INCLUDING ALL)?
Следующее
От: "ferraresso@tin.it"
Дата:
Сообщение: create subscription, connection string, password in log not hide