Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he08v-0002Ff-QO for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 16:42:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1he08u-00013A-6V for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 16:42:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he08t-00012e-Q0 for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 16:42:31 +0000 Received: from mout.gmx.com ([74.208.4.200]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1he08q-0000g8-SW for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 16:42:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1561048940; bh=FeklV+vTYgCBBSg1wrARMdq7dHvI3gjob7UGki2SMXU=; h=X-UI-Sender-Class:Subject:From:In-Reply-To:Date:Cc:References:To; b=VDNCfiJSJdSJL08zg5uYEYyHJ8dSjewRU4zg8dKDUKpcmz61ShzDbTlD/TthgvHTy plMTHC3Loeenld0AcjItGg0SVndaTs8O3Jb4/XC9Zqktf4kfpXrFNXkV0Ofx97N/wJ IscuiCRADFx6amWA+88LSecFHh1JPKbBsVMqyHp8= X-UI-Sender-Class: 214d933f-fd2f-45c7-a636-f5d79ae31a79 Received: from ip-192-168-1-67.ec2.internal ([165.225.39.9]) by mail.gmx.com (mrgmxus001 [74.208.5.15]) with ESMTPSA (Nemesis) id 0MTk7K-1i4QwO2M0O-00QVVO; Thu, 20 Jun 2019 18:42:20 +0200 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Row data is reflected in DETAIL message when constraints fail on insert/update From: Ravi Krishna In-Reply-To: <7057.1561040804@sss.pgh.pa.us> Date: Thu, 20 Jun 2019 12:42:16 -0400 Cc: Karsten Hilbert , PG Content-Transfer-Encoding: quoted-printable Message-Id: <9B4574FD-05FA-40CE-A5DB-3820B4E73C75@mail.com> References: <20190620114527.GD30366@hermes.hilbert.loc> <7057.1561040804@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.104.11) X-Provags-ID: V03:K1:Z1mqiSTtP5Jx8bWZ00ezyQfIk+shkrrNsbSYDM/WSomwz3xEr3X l7NE0t3K39TDOLpz+Y5TwjwqQgRv1GR53tfvUAaAxt6XFjn6MyKvfjIvtl+bRtU5YSkKjg1 76JxUGvsVs1F8CG06IslwKxdjLtgAs5c8SAViQN/D2GXnXSSpe9dIFTFYjhRbiwy1uZRZIc F7Id5ssTkBfZdckVopYfw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:fgl4MHbZ8cc=:5NX5cDoEZF7fXPeaMklLnG 6C0YjXI4I8DnGMUYrvZo4lSau+0eKpwz/9Z4oumEE15bCL+/qRR8XrIsIY90hZKXz3drw7kfJ G3u1M2yQZN5Fv0tBAxYFtXGLxJxx+/0wxO2dcrJYF1lzdHf/1qTOxaIHsTifz4nmYItAvdzC0 u1nwl8N6j/hUnZ+tLmpTYviLSM/dSscOOzWc12AVfc2lSt6FR5fwBrzcR52cJwpp/5PAoEiXn qknku3ZTTJU+UnaMYoTgNCFTDxYsGBApn3fRKFKUv5vwJEFdsPKuEhFFKE5/OZ9LrvqnyfaOb oxqM3EKBTnxe+DdPgNmLAoFaJzJxeRmZBpltWbVH4pg4ALJ7NJ1Pc3K/Ehs70sSNIylHFGJoS 8HyGOxA+KfMq2r/oRStCxpAIDJ+QNCC2PbI+me0FXNVlNjCTHK986+xZ8X//67huGyGIwVwjm BE9T3CO7FJe+sZIDurOmmbnjxg8LuK/1J0ZW/Jlge0Thi0Ls6ol9Tee8ZkdmstrpiPujhVdsa wSzzS8KarfXnn3rqS1HXpiPUoMNZiZbyPw3vQNz5Kml/KckOdFQa63evgBEmZEDquuvWukUl5 22SyLRDsRPbqiKpSoGFeaLigJFWzuz+N6A/RQib1jy2DFu62LTWBHaFl7zhq2NdRJGS5Xuyzb Acezaz+qd3b2dRqvKyJeGdNxIXK0FV74dm0j7EtlJJ+YCGHqlAzT25A/VZv/dyqqNI0HyM76R k17zHZwFcxPLyP5E++LInPxEwJ++G8Mcj15pi8oIFsfVvEy0xgauSnUJX6Xg6vtLCBnNchiMO WgRBytD5lHq8RJTu3uEfXqG1dyMqYGx4xSUo+qsaf+C9Q3d+B31Zid/Vbi6gwHevDM+Ctl24G l0NKWRR75HtrraiuHJaAT4QMDCJUGbuD+SgKwq75mSrAzdEw367jqouv0eGK3M9orjv5rkFFy wKWtpQQd6x3ZOCcWgdpRUpExyOHGBN/CiEwBXoLFc4QVUUUQ0pGSk List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > More generally: I find this complaint a little confusing. We did not > consider reporting the "show row contents" DETAIL to the client to be = a > security hazard when it was added, because one would think that that's > just data that the client already knows anyway. I'd be interested to = see > a plausible use-case in which the message would reflect PII that had = not > been supplied by or available to the client. I had the same issue in pgaudit which was spilling PHI data in PG logs = which we were feeding to sumologic. I had to write a python masking program to = strip out literal values from the PG log.