Skip to main content

ACCESS POLICY Load Issue

  • Aug 26, 2015 2:50 PM UTC
  • 4 replies
  • 22 views

MichaelPacocha

We've created an ACCESS POLICY on a table and it works great for select.  We are in the initial stages of testing and get an error when we try to load the table.  Using an unrestricted userid we receive the message - ERROR 6593:  Unable to MERGE: "Access denied due to active access policy on table.  Has anyone seen this?

4 replies

Adrian_Oprea_1
Forum|alt.badge.img+1
  • Participating Frequently
  • Aug 27, 2015 5:14 AM UTC

What is the definition of the access policy?

 


MichaelPacocha
  • Author
  • New Participant
  • Aug 27, 2015 8:31 PM UTC

CREATE ACCESS POLICY ON ods_owner.PS_PROV_PHONE FOR COLUMN T_PHONE_NUM
       CASE
           WHEN enabled_role('vertica_noPHI_role') then null
           ELSE T_PHONE_NUM
       END
ENABLE;

 

We opened case 00047780 yesterday if that helps.  Thanks.


MichaelPacocha
  • Author
  • New Participant
  • Sep 4, 2015 6:25 PM UTC

We changed the policy  as directed to:

 

CREATE ACCESS POLICY ON ods_owner.PS_CLIA FOR COLUMN I_FEIN
  CASE WHEN enabled_role('vertica_noPHI_role') THEN CAST('x' AS VARCHAR)
       ELSE I_FEIN
   END
ENABLE;

 

We still get the same error.


Kkso
  • New Participant
  • Nov 10, 2015 2:19 PM UTC

Hi. Have you found a solution?