aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/clusterdb.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-11-06 15:31:14 +0900
committerMichael Paquier <michael@paquier.xyz>2024-11-06 15:31:14 +0900
commitba08edb065459fca62191c020362022efd42b522 (patch)
tree4de15373ed1d8be6bab5d1d1dc67c0004cf9d042 /src/bin/scripts/clusterdb.c
parent87f81a55632107006e5006a2d0bc5272ebaeca64 (diff)
downloadpostgresql-ba08edb065459fca62191c020362022efd42b522.tar.gz
postgresql-ba08edb065459fca62191c020362022efd42b522.zip
Extend Cluster.pm's background_psql() to be able to start asynchronously
This commit extends the constructor routine of BackgroundPsql.pm with a new "wait" parameter. If set to 0, the routine returns without waiting for psql to start, ready to consume input. background_psql() in Cluster.pm gains the same "wait" parameter. The default behavior is still to wait for psql to start. It becomes now possible to not wait, giving to TAP scripts the possibility to perform actions between a BackgroundPsql startup and its wait_connect() call. Author: Jacob Champion Discussion: https://postgr.es/m/CAOYmi+=60deN20WDyCoHCiecgivJxr=98s7s7-C8SkXwrCfHXg@mail.gmail.com
Diffstat (limited to 'src/bin/scripts/clusterdb.c')
0 files changed, 0 insertions, 0 deletions