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 12:27:39 -0400
Message-ID: <2336717.1666024059@sss.pgh.pa.us> (raw)
In-Reply-To: <e8a8f194-c7b4-4a3f-9d6d-ede6c454318d.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>
	<2163397.1666015638@sss.pgh.pa.us>
	<e8a8f194-c7b4-4a3f-9d6d-ede6c454318d.qiumingcheng@aliyun.com>

"qiumingcheng" <qiumingcheng@aliyun.com> writes:
> Yes, It's capable of throwing an error(timestamp out of range) , but the
> message "timestamp out of range" is not sensitive information.

Really?  Whether that's true at all is a matter of opinion.  There's
also the prospect that somebody could determine the value of a
supposedly-unreadable timestamp by seeing how big an interval could
be added to it without overflow.  Maybe that's infeasible because of
timestamp_pl_interval not being marked leakproof, but then we're
getting into precisely the sort of conditional-on-other-assumptions
reasoning that we don't want to indulge in.

> Only from this function(timestamp_gt_timestamptz), can it be marked as leakproof?

Project policy is that we will not mark a function as leakproof unless
it's evident from the text of the function that it can't throw errors.
I don't see a good argument for making a exception for this one.

			regards, tom lane





view thread (14+ messages)  latest in thread

Message-ID: <2336717.1666024059@sss.pgh.pa.us>
Permalink:  ../2336717.1666024059@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2336717.1666024059@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: <2336717.1666024059@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> <e8a8f194-c7b4-4a3f-9d6d-ede6c454318d.qiumingcheng@aliyun.com> <2336717.1666024059@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