pgsql: psql: Add tests for repeated calls of \bind[_named]

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Add tests for repeated calls of \bind[_named]
Date: 2024-09-19 23:59:35
Message-ID: E1srR3f-00058O-8W@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Add tests for repeated calls of \bind[_named]

The implementation assumes that on multiple calls of these meta-commands
the last one wins. Multiple \g calls in-between mean multiple
executions.

There were no tests to check these properties, hence let's add
something.

Author: Jelte Fennema-Nio, Michael Paquier
Discussion: https://postgr.es/m/CAGECzQSTE7CoM=Gst56Xj8pOvjaPr09+7jjtWqTC40pGETyAuA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91287b5f5da324ac24678f556962e1b95e52240c

Modified Files
--------------
src/test/regress/expected/psql.out | 38 ++++++++++++++++++++++++++++++++++++++
src/test/regress/sql/psql.sql | 9 +++++++++
2 files changed, 47 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-09-20 00:58:59 pgsql: Restore relmapper state early enough in parallel workers.
Previous Message Thomas Munro 2024-09-19 23:48:07 Re: pgsql: Convert some extern variables to static