mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Allow 'sslkey' and 'sslcert' in postgres_fdw user mappings
This allows different users to authenticate with different certificates. Author: Craig Ringer
This commit is contained in:
@ -194,6 +194,15 @@ InitPgFdwOptions(void)
|
||||
{"fetch_size", ForeignServerRelationId, false},
|
||||
{"fetch_size", ForeignTableRelationId, false},
|
||||
{"password_required", UserMappingRelationId, false},
|
||||
/*
|
||||
* sslcert and sslkey are in fact libpq options, but we repeat them
|
||||
* here to allow them to appear in both foreign server context
|
||||
* (when we generate libpq options) and user mapping context
|
||||
* (from here).
|
||||
*/
|
||||
{"sslcert", UserMappingRelationId, true},
|
||||
{"sslkey", UserMappingRelationId, true},
|
||||
|
||||
{NULL, InvalidOid, false}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user