Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsOon-006o5t-67 for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2024 15:15:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rsOok-007E0J-Nh for pgsql-general@arkaria.postgresql.org; Thu, 04 Apr 2024 15:15:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsOoj-007Dzo-T4 for pgsql-general@lists.postgresql.org; Thu, 04 Apr 2024 15:15:54 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rsOoc-000YCP-Ec for pgsql-general@postgresql.org; Thu, 04 Apr 2024 15:15:52 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.west.internal (Postfix) with ESMTP id 5F6EF3200A7A; Thu, 4 Apr 2024 11:15:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 04 Apr 2024 11:15:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1712243743; x=1712330143; bh=9lIJEBiXTcfB+BD9TQxHwgpfxZ9Vo9FSopGXK5On5Zg=; b= hZV23+HT8Cy7K4wy/a5xQx99Tmb8Bj3gJaaxH8qLcd3kpHB1erh8sUsPlr0B0XAb TgvGNDY9YxxWvlqHJmTvxe50gjWBzHdbxqajESOBXpcGhmwIrP620Cspjys97Lpe WZNz6qjwkbVjCJdPSo1R4v0jp8M1Wm6XhAHypi8rb0lBufZE2x26laYKGEO8UyKJ dODs0474fzuC9pzYddfe9XXi2QIPIqWPXb29HEZHXvsbXxmg/P9Z4I95MMQwxYRj KxdE1TyNeSnGX/dQIB/kU8g5KrI5KN5hpzYyOkP+nsaV1EtCjczS3DDXNFYS+L6W kZbrROtr/FjP/jg4GPv9SA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712243743; x= 1712330143; bh=9lIJEBiXTcfB+BD9TQxHwgpfxZ9Vo9FSopGXK5On5Zg=; b=q qvvQJNp7QjT2S8zDKkoOshb1mSr/yvrazXpol4cjr6K2aAggoRzAGz+nOODoZM6z 9WNKH2a8te3GHAVs6mKb5cmC7D4suvB6FkYebL1cajPEQzPNcl2K12WHfD1o5AA/ UEEp2bzgE3HL4rjz0roxQWiFd7eSJmQ9koiL+1nTfsEY+iNp1F3F8HnFjIX+S6ng rlekUjf/8Qs0VYAG7vMFOigjEkVzisTRcfVAUj6hlMa3nJt/+3N6CzQS7UA8wgqt MSJLNavI3SmZX1vSIwUH28YjqL+ghyhBYPzt5RMkaW2SfUr86A7s8aqwwHqmmbfx 5lLYKes0Ar4TioOofGoGw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefkedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeeivdfhieehheegueeileejieettdejhedugeefleek vdelkeehtdfgiefffeekudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Apr 2024 11:15:42 -0400 (EDT) Message-ID: Date: Thu, 4 Apr 2024 08:15:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Failure of postgres_fdw because of TimeZone setting To: Adnan Dautovic , pgsql-general@postgresql.org References: <5DF49366-10D1-42A4-99BF-F9A7DC3AB0F4@mailbox.org> Content-Language: en-US From: Adrian Klaver In-Reply-To: <5DF49366-10D1-42A4-99BF-F9A7DC3AB0F4@mailbox.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/3/24 22:23, Adnan Dautovic wrote: > Hi everyone, > > > I have some trouble using postgres_fdw in order to display some data from a Postgres database I do not control in a Postgres database that I do control. I filled out the form from the wiki below and would appreciate any tips. > > > * A description of what you are trying to achieve and what results you expect.: > I am trying to import the public schema of a Postgres instance I do not control (I will call it "remote"), but have read-only access to, into a Postgres instance I fully control (I will call it "local"), using the foreign data wrapper postgres_fdw. Define 'read-only', especially as it applies to the privileges on the public schema. Per Tom Lane's comments on timezone, log into the remote server and do: SHOW timezone; SET timezone = 'etc/UTC'; SET timezone = 'UTC'; > > Does anyone have an idea for me? > > Kind regards, > > > Adnan Dautovic > > > -- Adrian Klaver adrian.klaver@aklaver.com