| От | Tom Lane |
|---|---|
| Тема | Re: Proposed patch for bug #3921 |
| Дата | |
| Msg-id | 11927.1202054560@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Proposed patch for bug #3921 (Gregory Stark <stark@enterprisedb.com>) |
| Список | pgsql-patches |
Gregory Stark <stark@enterprisedb.com> writes:
> So the syntax would be
> CREATE TABLE foo (..., LIKE bar INCLUDING INDEXES USING INDEX TABLESPACE foo_ts, ...)
This (presumably) forces all the indexes into the same tablespace,
so I don't find it to be a complete solution, just a wart.
We could get the same behavior with much less code if we redefined
LIKE to not try to copy the source indexes' tablespace(s). Then,
the user would set default_tablespace to get the effect of the
USING clause.
That would also make LIKE entirely free of tablespace permissions
hazards, so I'm starting to think more and more that that's really the
right definition.
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера