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/5407~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/5407
Choose a head ref
  • 3 commits
  • 13 files changed
  • 2 contributors

Commits on Feb 20, 2025

  1. Add pipelining support in psql

    With \bind, \parse, \bind_named and \close, it is possible to issue
    queries from psql using the extended protocol. However, it wasn't
    possible to send those queries using pipelining and the only way to test
    pipelined queries was through pgbench's tap tests.
    
    This patch adds additional psql meta-commands to support pipelining:
    \startpipeline, \endpipeline and \syncpipeline, mirroring the existing
    meta-commands in pgbench. Additional meta-commands allow to flush and
    read results of an ongoing pipeline: \flushrequest, \flush and \getresults
    
    \startpipeline starts a new pipeline. All extended queries will be
    queued until the end of the pipeline is reached.
    \endpipeline ends an ongoing pipeline. All queued commands will be sent
    to the server and all responses will be processed by the psql.
    \syncpipeline queues a synchronisation point without flushing the
    commands to the server
    \flush Call PQflush on psql's connection
    \flushrequest queues a flushrequest
    \getresults reads server's results. Unsent data are automatically pushed
    when \getresults is called
    
    Those meta-commands will allow to test pipeline behaviour using
    psql regression tests.
    bonnefoa authored and Commitfest Bot committed Feb 20, 2025
    Configuration menu
    Copy the full SHA
    4c24136 View commit details
    Browse the repository at this point in the history
  2. Add prompt interpolation and variables for psql pipeline

    Add %P prompt interpolation that reports the status pipeline: on, off or
    abort. Additionally, 3 new special variables are added to report the
    status of an ongoing pipeline:
    - PIPELINE_SYNC_COUNT: reports the number of piped sync
    - PIPELINE_COMMAND_COUNT: reports the number of piped commands, a
      command being either \bind, \bind_named, \close or \parse
    - PIPELINE_RESULT_COUNT: reports the results available to read with
      \getresults
    bonnefoa authored and Commitfest Bot committed Feb 20, 2025
    Configuration menu
    Copy the full SHA
    1bac844 View commit details
    Browse the repository at this point in the history
  3. [CF 5407] v09 - Add Pipelining support to psql

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5407
    
    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/CAO6_Xqr86Pc2qyk0pydfqkmrb63k9rw49T0dsS=WFB8x5oMM4Q@mail.gmail.com
    Author(s):
    Commitfest Bot committed Feb 20, 2025
    Configuration menu
    Copy the full SHA
    cdd490a View commit details
    Browse the repository at this point in the history
Loading