mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
postgres_fdw: Add support for parallel commit.
postgres_fdw commits remote (sub)transactions opened on remote server(s) in a local (sub)transaction one by one when the local (sub)transaction commits. This patch allows it to commit the remote (sub)transactions in parallel to improve performance. This is enabled by the server option "parallel_commit". The default is false. Etsuro Fujita, reviewed by Fujii Masao and David Zhang. Discussion: http://postgr.es/m/CAPmGK17dAZCXvwnfpr1eTfknTGdt%3DhYTV9405Gt5SqPOX8K84w%40mail.gmail.com
This commit is contained in:
@ -121,6 +121,7 @@ postgres_fdw_validator(PG_FUNCTION_ARGS)
|
||||
strcmp(def->defname, "updatable") == 0 ||
|
||||
strcmp(def->defname, "truncatable") == 0 ||
|
||||
strcmp(def->defname, "async_capable") == 0 ||
|
||||
strcmp(def->defname, "parallel_commit") == 0 ||
|
||||
strcmp(def->defname, "keep_connections") == 0)
|
||||
{
|
||||
/* these accept only boolean values */
|
||||
@ -249,6 +250,7 @@ InitPgFdwOptions(void)
|
||||
/* async_capable is available on both server and table */
|
||||
{"async_capable", ForeignServerRelationId, false},
|
||||
{"async_capable", ForeignTableRelationId, false},
|
||||
{"parallel_commit", ForeignServerRelationId, false},
|
||||
{"keep_connections", ForeignServerRelationId, false},
|
||||
{"password_required", UserMappingRelationId, false},
|
||||
|
||||
|
Reference in New Issue
Block a user