We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ea98a commit ba15f16Copy full SHA for ba15f16
src/test/perl/PostgreSQL/Test/Cluster.pm
@@ -327,6 +327,31 @@ sub install_path
327
328
=pod
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
355
=item $node->info()
356
357
Return a string containing human-readable diagnostic information (paths, etc)
0 commit comments