aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-04-07 22:14:20 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-04-07 22:14:20 +0200
commit664d757531e11ea5ef6971884ddb2a7af6fae69a (patch)
tree981aa632e9732d6ad1d9c9fca09d8bfaeccb878c /src/backend/access/gist
parent32bc0d022dee250fac9fc787226abed96b8ff894 (diff)
downloadpostgresql-664d757531e11ea5ef6971884ddb2a7af6fae69a.tar.gz
postgresql-664d757531e11ea5ef6971884ddb2a7af6fae69a.zip
Refactor background psql TAP functions
This breaks out the background and interactive psql functionality into a new class, PostgreSQL::Test::BackgroundPsql. Sessions are still initiated via PostgreSQL::Test::Cluster, but once started they can be manipulated by the new helper functions which intend to make querying easier. A sample session for a command which can be expected to finish at a later time can be seen below. my $session = $node->background_psql('postgres'); $bsession->query_until(qr/start/, q( \echo start CREATE INDEX CONCURRENTLY idx ON t(a); )); $bsession->quit; Patch by Andres Freund with some additional hacking by me. Author: Andres Freund <andres@anarazel.de> Reviewed-by: Andrew Dunstan <andrew@dunslane.net> Discussion: https://postgr.es/m/20230130194350.zj5v467x4jgqt3d6@awork3.anarazel.de
Diffstat (limited to 'src/backend/access/gist')
0 files changed, 0 insertions, 0 deletions