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 thepg_tle
feature (such aspasscheck
) to register with the function.
Output
None.
Usage example
SELECT pgtle.register_feature('pw_hook', 'passcheck');