<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Plpgsql on Postgres Scripts</title><link>https://www.postgresscripts.com/tags/plpgsql/</link><description>Recent content in Plpgsql on Postgres Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>PostgresScripts.com</copyright><lastBuildDate>Fri, 17 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://www.postgresscripts.com/tags/plpgsql/index.xml" rel="self" type="application/rss+xml"/><item><title>Scrubbing Email PII in PostgreSQL for GDPR Compliance</title><link>https://www.postgresscripts.com/post/scrub-pii-email-data-in-postgresql/</link><pubDate>Fri, 17 Apr 2026 00:00:00 +0000</pubDate><guid>https://www.postgresscripts.com/post/scrub-pii-email-data-in-postgresql/</guid><description>
&lt;h2 id="scrubbing-email-pii-from-your-postgresql-database"&gt;Scrubbing Email PII from Your PostgreSQL Database&lt;/h2&gt;
&lt;p&gt;When you copy a production database to a development or test environment, you must remove or anonymize personally identifiable information (PII). Email addresses are among the most common PII fields that need to be scrubbed. Leaving real email addresses in non-production databases creates compliance risk under GDPR, CCPA, and similar regulations.&lt;/p&gt;
&lt;p&gt;PostgreSQL makes it straightforward to build a reusable scrubbing solution using a PL/pgSQL function for single-row replacement and a stored procedure for batch processing large tables.
&lt;script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1012089347386563"
crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-1012089347386563"
data-ad-slot="7945792173"
data-ad-format="auto"
data-full-width-responsive="true"&gt;&lt;/ins&gt;
&lt;script&gt;
(adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;</description></item></channel></rss>