pgtle.register_feature - Amazon Aurora

pgtle.register_feature

The register_feature function adds the specified internal PostgreSQL feature to the pgtle.feature_info table. PostgreSQL hooks are an example of an internal PostgreSQL feature. The Trusted Language Extensions development kit supports the use of PostgreSQL hooks. Currently, this function supports the following feature.

  • passcheck – Registers the password-check hook with your procedure or function that customizes PostgreSQL's password-check behavior.

Function prototype

pgtle.register_feature(proc regproc, feature pg_tle_feature)

Role

pgtle_admin

Arguments

  • proc – The name of a stored procedure or function to use for the feature.

  • feature – The name of the pg_tle feature (such as passcheck) to register with the function.

Output

None.

Usage example

SELECT pgtle.register_feature('pw_hook', 'passcheck');