This is an example of a named connection to a PostgreSQL/PostGIS table.
<?xml version="1.0" encoding="UTF-8"?>
<NamedConnection version="MXP_NamedResource_1_5" xmlns="http://www.mapinfo.com/mxp">
<DBConnection dbType="postgis">
<ConnectionName>Connection_1</ConnectionName>
<JDBCDriverParameters>
<JDBCUrl>@jdbcurl@</JDBCUrl>
<DriverPropertySet>
<Property name="user" value="@user@"/>
<Property name="password" value="@password@"/>
</DriverPropertySet>
</JDBCDriverParameters>
</DBConnection>
</NamedConnection>Note: The @jdbcurl@ used to connect to the database would be in the form
jdbc:postgresql://@host@:@port@/@databasename@