From: | "Rader, David" <davidr(at)openscg(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [BUGS] Seems bug in postgres_fdw? |
Date: | 2017-03-01 21:58:58 |
Message-ID: | CAABt7R4JY2uXhUPys_v=1LZJskdfsHLSJzr8jEkwhma1y9Wh0g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Mon, Feb 27, 2017 at 10:10 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Sachin Kotwal <kotsachin(at)gmail(dot)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
>
>
>
Tom -
Attached is a doc patch that updates the documentation for postgres-fdw to
include the actual values for the 4 session variables that are set. Does
that make sense to clarify?
Thanks
-Dave
Attachment | Content-Type | Size |
---|---|---|
0001-Document-postgres-fdw-session-settings-for-parameter.patch | text/x-patch | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | dlw405 | 2017-03-02 01:59:58 | BUG #14573: lateral joins, ambuiguity |
Previous Message | rick | 2017-03-01 16:08:41 | BUG #14572: pgadmin restore command path error |
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Nasby | 2017-03-01 22:02:00 | Re: Disallowing multiple queries per PQexec() |
Previous Message | Thomas Munro | 2017-03-01 21:18:55 | Re: 2017-03 Commitfest In Progress |