The database searches the directories defined in the GUC "dynamic_library_path". See
dynamic_library_path for details on the GUC.
By default this is set to "$libdir". This may be removed when an optional package is installed.
If "$libdir" is missing from the list of paths in the GUC, prepend the string to the GUC.
NOTE: The settings below are just examples and will need to be changed to appropriate values for the specific environment
1. Check the "postgresql.conf" file for the master/coordinartor.
vi $MASTER_DATA_DIRECTORY/postgresql.conf
dynamic_library_path='/usr/local/greenplum-db/madlib/Versions/1.21.0/../../Current/ports/greenplum/6/lib'
Prepend "$libdir" to the list of paths:
dynamic_library_path='$libdir:/usr/local/greenplum-db/madlib/Versions/1.21.0/../../Current/ports/greenplum/6/lib'
2. Start the database in master-only mode:
gpstart -ma
3. Change the GUC on all segments:
gpconfig -c dynamic_library_path='$libdir:/usr/local/greenplum-db/madlib/Versions/1.21.0/../../Current/ports/greenplum/6/lib'
4. Stop and start the database
gpstop -af
gpstart -a