Re: BUG #3235: Partitioning has problem with timestamp and timestamptz data types
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #3235: Partitioning has problem with timestamp and timestamptz data types |
| Дата | |
| Msg-id | 20938.1176873886@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #3235: Partitioning has problem with timestamp and timestamptz data types ("Christian Gonzalez" <christian.gonzalez@sigis.com.ve>) |
| Список | pgsql-bugs |
"Christian Gonzalez" <christian.gonzalez@sigis.com.ve> writes:
> Description: Partitioning has problem with timestamp and timestamptz
> data types
In your example as given, you partition the table on "logdate", and then
add an unrelated column "logdatet" and seem to expect that the system
will think that's a partitioning condition.
I think you probably misstated your example, and meant to complain that
a table properly partitioned on a timestamptz column isn't behaving as
you'd wish for comparisons against "date" values. The problem here is
that the conversion is dependent on TimeZone, so is not immutable, so
the planner daren't depend on it to prove that the unwanted partition
tables need not be searched. You need to think harder about how
timezones should enter into your search rules...
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера