pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: qiumingcheng <qiumingcheng@aliyun.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Cc: yuexingzhi <yuexingzhi@hotmail.com>
Subject: Re: 回复:回复:回复:A question about leakproof
Date: Mon, 17 Oct 2022 10:07:18 -0400
Message-ID: <2163397.1666015638@sss.pgh.pa.us> (raw)
In-Reply-To: <195c5d95-8749-4419-a4f4-604cc8c937ec.qiumingcheng@aliyun.com>
References: <9cc93fdc-2f99-4963-b895-169135b742a8.qiumingcheng@aliyun.com>
	<20221017014020.qpu2f5yy4lridhic@jrouhaud>
	<2067840.1665971686@sss.pgh.pa.us>
	<9b7029cb-cd0d-494d-8628-93c7f8948117.qiumingcheng@aliyun.com>
	<2077794.1665977617@sss.pgh.pa.us>
	<e2ca8df9-0ce2-4a69-bbe3-7c3bc81f9234.qiumingcheng@aliyun.com>
	<9e253a3226436819f0aaf59fb82137477d9f5a78.camel@cybertec.at>
	<195c5d95-8749-4419-a4f4-604cc8c937ec.qiumingcheng@aliyun.com>

"qiumingcheng" <qiumingcheng@aliyun.com> writes:
> 2. What's the reason about the function timestamp_gt_timestampz may cause data leakage? Can you explain how it causes data leakage?

It's capable of throwing an error (see
timestamp2timestamptz_opt_overflow).  Now, maybe that's unreachable, or
maybe we could rerrange things to remove it.  But there's still enough
code underneath the timezone conversion requirement that I'd be very
hesitant to apply a leakproof marking.  In short: it might be leakproof
in practice, but we don't wish to offer a guarantee.

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <2163397.1666015638@sss.pgh.pa.us>
Permalink:  ../2163397.1666015638@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2163397.1666015638@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, qiumingcheng@aliyun.com, laurenz.albe@cybertec.at, rjuju123@gmail.com, yuexingzhi@hotmail.com
  Subject: Re: 回复:回复:回复:A question about leakproof
  In-Reply-To: <2163397.1666015638@sss.pgh.pa.us>
  References: <9cc93fdc-2f99-4963-b895-169135b742a8.qiumingcheng@aliyun.com> <20221017014020.qpu2f5yy4lridhic@jrouhaud> <2067840.1665971686@sss.pgh.pa.us> <9b7029cb-cd0d-494d-8628-93c7f8948117.qiumingcheng@aliyun.com> <2077794.1665977617@sss.pgh.pa.us> <e2ca8df9-0ce2-4a69-bbe3-7c3bc81f9234.qiumingcheng@aliyun.com> <9e253a3226436819f0aaf59fb82137477d9f5a78.camel@cybertec.at> <195c5d95-8749-4419-a4f4-604cc8c937ec.qiumingcheng@aliyun.com> <2163397.1666015638@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox