PostgreSQL Connector > Mappings and mapping tasks with PostgreSQL Connector > PostgreSQL lookups in mappings
  

PostgreSQL lookups in mappings

In a mapping, you can configure a Lookup transformation to represent an PostgreSQL lookup.
The following table describes the PostgreSQL lookup properties that you can configure in a Lookup transformation:
Property
Description
Connection
Name of the lookup connection, or create a connection parameter.
If you want to overwrite the lookup connection properties at runtime, select the Allow parameter to be overridden at run time option. Specify the parameter file directory and name in the advanced session properties.
Source type
Type of the lookup object. Select Single Object or Parameter.
Object
Name of the lookup object.
Parameter
A parameter file where you define values that you want to update without having to edit the task.
Select an existing parameter for the lookup object or click New Parameter to define a new parameter for the lookup object.
The Parameter property appears only if you select parameter as the lookup type.
If you want to overwrite the lookup object at runtime, select the Allow parameter to be overridden at run time option.
When the task runs, the Secure Agent uses the parameters from the file that you specify in the advanced session properties.
Multiple Matches
The behavior when the lookup condition returns multiple matches. You can return all rows, any row, the first row, the last row, or an error.
You can select from the following options in the lookup object properties to determine the behavior:
  • - Return first row
  • - Return last row
  • - Return any row
  • - Return all rows
  • - Report error
Schema Name
Overrides the schema name of the lookup object.
Source Table Name
Overrides the default PostgreSQL source table name in the Lookup transformation.