Re: [BUGS] Seems bug in postgres_fdw?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] Seems bug in postgres_fdw?
Дата
Msg-id 23561.1488208238@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [BUGS] Seems bug in postgres_fdw?  (Sachin Kotwal <kotsachin@gmail.com>)
Список pgsql-bugs
Sachin Kotwal <kotsachin@gmail.com> writes:
> Here , Why postgresql takes different time when remote table and foreign
> table have different definition for timestamp column?

I believe postgres_fdw sets the timezone in its remote session to UTC
for predictability of results.  Your table definition is really at fault
for being dependent on what the session timezone is.

Personally I'd make the ins_ts column be timestamp with time zone, but
if you really don't want to do that, you could consider making the default
expression be "current_timestamp AT TIME ZONE 'something'" to force the
rotated value to be in a particular zone.

            regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14570: Validation error
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] BUG #14543: libpq fails with group readable ssl keys