Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/6137~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/6137
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Dec 27, 2025

  1. postgres_fdw: speed up batch inserts using COPY

    This commit include a new foreign table/server option
    "batch_with_copy_threshold" that enable the usage of the COPY command to
    speed up batch inserts when a COPY FROM or an insert into a table
    partition that is a foreign table is executed. In both cases the
    BeginForeignInsert fdw routine is called, so this new option is
    retrieved only on this routine. For the other cases that use the
    ForeignModify routines still use the INSERT as a remote SQL.
    
    Note that the COPY will only be used for batch inserts and only if the
    current number of rows being inserted on the batch operation is >=
    batch_with_copy_threshold. If batch_size=100, batch_with_copy_threshold=50
    and number of rows being inserted is 120 the first 100 rows will be
    inserted using the COPY command and the remaining 20 rows will be
    inserted using INSERT statement because it did not reach the copy
    threshold.
    mattheusv authored and Commitfest Bot committed Dec 27, 2025
    Configuration menu
    Copy the full SHA
    04bcd7b View commit details
    Browse the repository at this point in the history
  2. [CF 6137] v8 - postgres_fdw: Use COPY to speed up batch inserts

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/6137
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/[email protected]
    Author(s): Matheus Alcantara
    Commitfest Bot committed Dec 27, 2025
    Configuration menu
    Copy the full SHA
    bb0bb1e View commit details
    Browse the repository at this point in the history
Loading