Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/src/bin/pg_resetwal/t/     Datei vom 11.4.2026 mit Größe 1 kB image not shown  

Quelle  002_status.pl  Sprache: Shell



# Copyright (c) 2021-2025, PostgreSQL Global Development Group

use strict;
use warnings FATAL => 'all';

use PostgreSQL::Test::Cluster;
use PostgreSQL::Test::Utils;
use Test::More;

my $tempdir = PostgreSQL::Test::Utils::tempdir;

command_exit_is([ 'pg_ctl', 'status', '--pgdata' => "$tempdir/nonexistent" ],
 4, 'pg_ctl status with nonexistent directory');

my $node = PostgreSQL::Test::Cluster->new('main');
$node->init;

command_exit_is([ 'pg_ctl', 'status', '--pgdata' => $node->data_dir ],
 3, 'pg_ctl status with server not running');

system_or_bail(
 'pg_ctl',
 '--log' => "$tempdir/logfile",
 '--pgdata' => $node->data_dir,
 '--wait', 'start');
command_exit_is([ 'pg_ctl', 'status', '--pgdata' => $node->data_dir ],
 0, 'pg_ctl status with server running');

system_or_bail 'pg_ctl', 'stop', '--pgdata' => $node->data_dir;

done_testing();

Messung
CHZG
939810096

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.756Angebot  ¤

*Bot Zugriff