File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
src/test/perl/PostgreSQL/Test Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -327,6 +327,31 @@ sub install_path
327
327
328
328
=pod
329
329
330
+ =item $node->config_data($option)
331
+
332
+ Return a string holding configuration data from pg_config, with $option
333
+ being the option switch used with the pg_config command.
334
+
335
+ =cut
336
+
337
+ sub config_data
338
+ {
339
+ my ($self , $option ) = @_ ;
340
+ local %ENV = $self -> _get_env();
341
+
342
+ my ($stdout , $stderr );
343
+ my $result =
344
+ IPC::Run::run [ $self -> installed_command(' pg_config' ), $option ],
345
+ ' >' , \$stdout , ' 2>' , \$stderr
346
+ or die " could not execute pg_config" ;
347
+ chomp ($stdout );
348
+ $stdout =~ s /\r $// ;
349
+
350
+ return $stdout ;
351
+ }
352
+
353
+ =pod
354
+
330
355
=item $node->info()
331
356
332
357
Return a string containing human-readable diagnostic information (paths, etc)
You can’t perform that action at this time.
0 commit comments