Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT4NQ-0000x7-Px for pgsql-general@arkaria.postgresql.org; Wed, 22 Sep 2021 15:41:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mT4NO-0006QL-Dw for pgsql-general@arkaria.postgresql.org; Wed, 22 Sep 2021 15:41:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT4NO-0006QC-38 for pgsql-general@lists.postgresql.org; Wed, 22 Sep 2021 15:41:38 +0000 Received: from mout.gmx.net ([212.227.17.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mT4NL-0003kh-KW for pgsql-general@lists.postgresql.org; Wed, 22 Sep 2021 15:41:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1632325292; bh=MiywK7OI5zKLSeGpXuhv3i291AnHtofpElNEukDZKrs=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=UogEIBYrkVSnRi2ZLKpClPnrQYIiSyHMCbJz1CQPmxgVFq1G75XwAutFhD/4CiTKH axGP8y7bLbf3IUdexA14GJHvknmkCGfDrUjNUW93KNCNLMhKaNFIGy2hctze2Qw39s b0iF1KwrP3K0/2n3F+PO/cEeOLgS3rELoDssWOm8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([89.14.240.189]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGQj7-1mevw62UO5-00GrYQ for ; Wed, 22 Sep 2021 17:41:31 +0200 Received: from ncq by hermes with local (Exim 4.94.2) (envelope-from ) id 1mT4NG-000295-L5 for pgsql-general@lists.postgresql.org; Wed, 22 Sep 2021 17:41:30 +0200 Date: Wed, 22 Sep 2021 17:41:30 +0200 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: Timestamp with vs without time zone. Message-ID: References: <72C6EDD6-39E3-47A9-B313-A4D6C7AF0C44@fairwindsoft.com> <875yutl6l8.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) Sender: X-Provags-ID: V03:K1:9tGjUXzM0Q1tLTPFTQAd9XGITtqw0iG1ZMhMVCm9GaBkxhDsJ99 dIhnCR/Cqthojaq63lDeLWSYT9aAxMTtxG4q63vKkxYL/yliCjLGq3bGq1VlvkPKOadYhP5 KXzeRbS2aGkUYUQ0bM3nyUohyXud7rnwSQFCTgdTHcxW2bZVAIv1riTWqwaIbL8wtr+AheA wRlQAWVRocI5nEOYEw9cA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:PSkIUhfxhd4=:WGJsQr6KdVgF1mbDTArFuQ NMC6px0G51EubxpQCNOcOQ6kLtKrAYGsDcI9Vhkv7BpfajLdYLUn/T9HcK6fpDztiBo/v12Mn dkvPiRIPC4TxvRctJq2RJO1x7s30dD4Y+k8E/ByuMHoYFlSvKjEXNZCZAaLDCVXM4QiM/TPfx B2UXbq2VsHRHVCAf4NLu33PaXydM3SUQgoAI7UxcJOryKW7rSIGdhqlSw8Ixh5TBxjSL+poc1 YSE7VqbwoLo4qQfX5bdJKoqk57I8DLzzXQoBbAlsGc5TJgd1Z+1TnkQ19qbFYvUY6iSzjyII3 a64+E6SISvNwTDEhKAynW0++hWdUv2yTuzfx4M0+eDTgqGORuRz0Eiirgd4K04t9IVzT+v1rG GAZ5/Ypsi0AeLPF4zS0By+A3DBNJQhYQZ2EOjfJsodFJIS2EALEuuC0dcw+MTSnSul/k0A7Hj 2teDa8g9ZqMQ9uCT8lYgN3lJBdlIufI6Icd0clftFYZww/dY5CDiYyFHTj12eHZeI40FTZpkX B1CPhLUqOo6vq6MLy4gV+ta0xnAT02H9MHje58ZEshxEh9eKW7Lr7/jBwbCRLIjCDWykla+dt Rk0/QZX5bgedOiYws+JD1QT+wDTJnqlqPx5uWakB9DF8A6MnBGd3LK0dExdQ1n124ia7XjVgu 92dyOqtlPPw6kGh8QOZRj+0zZnfF7Zb4nqvAo8k/eppK8fwZMjB+3GPFJ5N5pVfh+rfGnSExP m2szc3nWLJCyPbC1IEguGQFYb9KVLFiK62UpE0grQDMG0ImS6DvPX7D8sveyTGS1tavIlPHxU 9okGJ12y7GYZlxlflHBoycpK82rahAsmPTaKVFzsie3lgJSUFKvRyxjuDaoEmU+ET8cWsaj+a PPlxZXHdFnJguAXh18vLc+8/Ejm3ylQxjf/qjL+/3g/yJM+C/c7g5gdFMF1xMyOLJEptxvm/J HZkjNEJFMaQ+Fv2XCrkHVZaPfrhUPe5vm2s0hL7oNt8xQf3vqwIicocY8gRyImKWueH0Q1sLN WlF/oHFyN9KFhUY2eNwVEacYd7y6O5RwkykhTj5Ad55ACwbF/NSrFMgfod0SorfRaeyrIC4AJ YFObQsBIM0T2YE= Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Am Wed, Sep 22, 2021 at 08:11:50PM +1200 schrieb Tim Uckun: > A korean user will fetch you single page app as static HTML from S3 > with cloudfront. It will hit your japanese API server, which will > fetch the data from your japanese read only replica with the master > being in Australia. > > The master DB writes the records has to know your end user is in > Korea somehow so you have to carry that time zone all the way across > those tiers. One does not: as soon as the real-world concept of point-in-time hits the machine it gets converted to UTC. When it leaves the machine (towards user consumption) it gets converted to whatever is desired. UTC =3D UTF8 Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B