PQconndefaults Subroutine

public subroutine PQconndefaults(options)

Return the default connection options.

Returns a connection options array. This can be used to determin all possible PQconnectdb options and their current default values.

cf. PostgreSQL Documentation

Example

   type(PQconninfoOption), allocatable, target :: options(:)
   integer :: i

   call PQconndefaults(options)

   ! Print the entire default options separated by colons
   do i = 1, size(options)
      print '(12a, i0)', trim(options(i)%keyword)," : ", &
         trim(options(i)%envvar), " : ", &
         trim(options(i)%compiled), " : ", &
         trim(options(i)%val), " : ", &
         trim(options(i)%label), " : ", &
         trim(options(i)%dispchar), " : ", &
         options(i)%dispsize
   end do

Arguments

Type IntentOptional Attributes Name
type(PQconninfoOption), intent(out), dimension(:), allocatable, target :: options

Contents