| От | Dani Oderbolz |
|---|---|
| Тема | Re: Partition DB Tables by month |
| Дата | |
| Msg-id | 3F265EC3.5010603@ecologic.de обсуждение исходный текст |
| Ответ на | Partition DB Tables by month (Romildo Wildgrube <romildo@ragingnet.com>) |
| Список | pgsql-admin |
Romildo Wildgrube wrote: > Hi, > > Is there a way to break the data files by month like in Oracle so that > I can easely drop the tables on a monthly basis? Is this something > postgres supports or is there a work around solution? Hmm, as far as I know its not supported. But I could think of a solution of a table per month which are then hidden behind a view which does a UNION ALL on all of them. You could even automate the Adminostration of this via a Function. I mean, in Oracle Partitions behave like single tables, so this would simulate somethig similar. But I think the Optimizer would not be able to see that he must only access the table table_Jan_2003 if you are restricting on January 2003... Cheers, Dani
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера