Re: Partitioning on the date part of a timestamp & PK issues
В списке pgsql-admin по дате отправления:
| От | Ron |
|---|---|
| Тема | Re: Partitioning on the date part of a timestamp & PK issues |
| Дата | |
| Msg-id | d5cd0231-32ab-540e-f354-45dd23ed4130@gmail.com обсуждение исходный текст |
| Ответ на | Re: Partitioning on the date part of a timestamp & PK issues (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
| Список | pgsql-admin |
On 7/15/21 9:53 PM, Alvaro Herrera wrote: > On 2021-Jul-15, Ron wrote: > >> CREATE TABLE t ( >> guid uuid not null, >> seq smallint not null, >> tid smallint not null, >> ts timestamp without time zone not null, >> x real, >> y real, >> z real, >> primary key (guid, tid, seq, ts) >> ) partition by range (ts); > This definition will let you have multiple rows for the same > (guid,tid,seq) combination, as long as they have different ts values. > That is at odds with the original formulation, in which there could be a > single row with any given combination of those three columns. That's the cost of partitioning by something other than uid, tid or seq. -- Angular momentum makes the world go 'round.
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера