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 1goPBd-0002RK-1z for pgsql-admin@arkaria.postgresql.org; Tue, 29 Jan 2019 08:56:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goPBb-0000OK-CS for pgsql-admin@arkaria.postgresql.org; Tue, 29 Jan 2019 08:56:03 +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 1goPBb-0000OB-4u for pgsql-admin@lists.postgresql.org; Tue, 29 Jan 2019 08:56:03 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goPBY-0005vl-KD for pgsql-admin@lists.postgresql.org; Tue, 29 Jan 2019 08:56:02 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id x0T8tr8U014701 for ; Tue, 29 Jan 2019 10:55:58 +0200 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id x0T8tqO9089049 for ; Tue, 29 Jan 2019 10:55:53 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: : : How to mask column: : To: pgsql-admin@lists.postgresql.org References: <8a65c3aa-5059-d660-5d8c-523df82e7ea4@gmx.net> From: Achilleas Mantzios Message-ID: Date: Tue, 29 Jan 2019 10:55:52 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 MIME-Version: 1.0 In-Reply-To: <8a65c3aa-5059-d660-5d8c-523df82e7ea4@gmx.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-29.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 29/1/19 10:39 π.μ., Thomas Kellerer wrote: > JD schrieb am 29.01.2019 um 09:02: >> Hi Team, >> >> Is there any way to mask the column value (*******) in postgresql? > You could create a view that does that and only give access to that view, rather than the underlying table. > IMHO this should fall under RLS. Something that could be called CLS (Column Level Security). Dalibo's anonymizer seems promising, if only it could be integrated in RLS framework . That would mean instant GDPR :) > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt