aws / pg_tle

Framework for building trusted language extensions for PostgreSQL
Apache License 2.0
337 stars 30 forks source link

Block postmaster startup if clientauth background workers fail to register #254

Closed adamguo0 closed 11 months ago

adamguo0 commented 11 months ago

Issue #, if available: https://github.com/aws/pg_tle/issues/252

Description of changes: On init, check if clientauth's workers have been added to the registration list. If any are missing then fail postmaster startup. Emit an error for administrator to check max_worker_processes and pgtle.clientauth_num_parallel_workers.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.