Amazon Aurora PostgreSQL-Compatible Edition has introduced a dynamic data masking feature that provides column-level protection, enhancing security alongside PostgreSQL’s row-level security. This feature is available for Aurora PostgreSQL versions 16.10 and higher, as well as 17.6. Dynamic data masking allows organizations to maintain a single copy of their data while applying role-based access controls, ensuring sensitive information is protected in real-time without data duplication. The pg_columnmask extension enables policy-based masking and runtime query rewriting, allowing different users to see varying levels of data based on their roles. For example, customer service representatives may see only the last four digits of account numbers, while executives see full details. The feature supports compliance with regulations such as GDPR, HIPAA, and PCI DSS. Users can create masking policies using standard SQL commands, and the policies can be defined to utilize built-in or custom functions for data masking.