Re: [GENERAL] CREATE TABLE LIKE including all not including storage parameters?

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [GENERAL] CREATE TABLE LIKE including all not including storage parameters?
Дата
Msg-id CAB7nPqSpHbpJSoZ3mB=Bj_Jji+Hjgk1tiS69DFbZ=OY+HpuvwA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] CREATE TABLE LIKE including all not including storageparameters?  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Ответы Re: [GENERAL] CREATE TABLE LIKE including all not including storageparameters?  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-general
On Tue, Sep 5, 2017 at 6:45 PM, Achilleas Mantzios
<achill@matrix.gatewaynet.com> wrote:
> Am I doing something wrong here?

From the documentation:
https://www.postgresql.org/docs/devel/static/sql-createtable.html
STORAGE settings for the copied column definitions will be copied only
if INCLUDING STORAGE is specified. The default behavior is to exclude
STORAGE settings, resulting in the copied columns in the new table
having type-specific default settings. For more on STORAGE settings,
see Section 66.2.

And in this case storage parameters refer to column-specific settings,
not table-level storage parameters, which are defined here by toast:
https://www.postgresql.org/docs/devel/static/storage-toast.html
--
Michael


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

Предыдущее
От: Achilleas Mantzios
Дата:
Сообщение: Re: [GENERAL] CREATE TABLE LIKE including all not including storageparameters?
Следующее
От: Achilleas Mantzios
Дата:
Сообщение: Re: [GENERAL] CREATE TABLE LIKE including all not including storageparameters?