Re: BUG #3235: Partitioning has problem with timestamp and timestamptz data types

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: "Amorn Buchheit"
Дата:
Сообщение: Submit bug report via bug web form - couldn't find the thread
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #3232: Regression: pgsql server startup problem with encrypted partitions