Skip to content

Add support to exclude by application name on txn_* checks #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for --action=wal_files --lsfunc
  • Loading branch information
df7cb authored and martinmarques committed Sep 25, 2015
commit 85e7da645dd611f9948d1e2bfbaaf09c71fd52b3
4 changes: 4 additions & 0 deletions check_postgres.pl
Original file line number Diff line number Diff line change
Expand Up @@ -10178,6 +10178,10 @@ =head1 HISTORY
Add Spanish message translations
(Luis Vazquez)

Allow a wrapper function to run wal_files and archive_ready actions as
non-superuser
(Joshua Elsasser)

=item B<Version 2.22.0> June 30, 2015

Add xact timestamp support to hot_standby_delay.
Expand Down
14 changes: 13 additions & 1 deletion t/02_wal_files.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use 5.006;
use strict;
use warnings;
use Data::Dumper;
use Test::More tests => 11;
use Test::More tests => 12;
use lib 't','.';
use CP_Testing;

Expand Down Expand Up @@ -64,6 +64,18 @@ is ($cp->run('--critical=1 --output=mrtg'), "99\n0\n\n\n", $t);
$t=qq{$S returns correct MRTG information};
is ($cp->run('--critical=101 --output=mrtg'), "99\n0\n\n\n", $t);

# test --lsfunc
$dbh->do(q{CREATE FUNCTION ls_xlog_dir()
RETURNS SETOF TEXT
AS $$ SELECT pg_ls_dir('pg_xlog') $$
LANGUAGE SQL
SECURITY DEFINER});
$cp->create_fake_pg_table('ls_xlog_dir', ' ');
$dbh->do(q{INSERT INTO cptest.ls_xlog_dir SELECT 'ABCDEF123456ABCDEF123456' FROM generate_series(1,55)});
$dbh->commit();
$t=qq{$S returns correct number of files};
like ($cp->run('--critical=1 --lsfunc=ls_xlog_dir'), qr{^$label CRITICAL.+ 55 \|}, $t);

$cp->drop_schema_if_exists();

exit;
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy