When an application logs on and initiates a pooled session, the row-level security constraints assigned to the application are in effect.
When SET QUERY_BAND is used to assert a proxy user, the row-level security constraints assigned to the proxy user are in effect, regardless of whether these constraints have been assigned directly or through a profile.