You want to scan a PostgreSQL database and need to know the necessary steps to configure Network Discover.
Note: This is not a supported scan target for DLP, however with the appropriate changes to the sqldatabasecrawler.properties and your postgres database it can work. This is a "Best Effort" solution only. For supported database targets please refer to published documentation.
[Windows] C:\Program Files\Symantec\DataLossPrevention\DetectionServer\<version>\Protect\lib\jdbc
[Linux] /opt/Symantec/DataLossPrevention/DetectionServer/<version>/Protect/lib/jdbc
[Windows] C:\Program Files\Symantec\DataLossPrevention\DetectionServer\<version>\Protect\config\sqldatabasecrawler.properties
[Linux] /opt/Symantec/DataLossPrevention/DetectionServer/<version>/Protect/config/sqldatabasecrawler.properties
# Postgresql
driver_class.postgresql = org.postgresql.Driver
driver_subprotocol.postgresql = postgresql
driver_jar.postgresql = postgresql-42.4.0.jar
driver_table_query.postgresql = SELECT tablename FROM pg_tables WHERE tableowner = current_user
driver_row_selector.postgresql = SELECT {1} FROM {0} LIMIT {2}
quote_table_names.postgresql = false
postgresql://HOST:5432/DatabaseNameConfigure any other parameters as desired and then test the scan target.
Enable the PostgreSQL database server to allow connections from the Network Discover Server
[Windows] C:\Program Files\PostgreSQL\13\data\pg_hba.conf
# TYPE DATABASE USER ADDRESS METHOD
host all all myDiscoverServer scram-sha-256