Table of Contents

Search

  1. Preface
  2. Introduction to PostgreSQL Connector
  3. Connections for PostgreSQL
  4. Mappings and mapping tasks with PostgreSQL Connector
  5. PostgreSQL objects in mapping tasks
  6. Lookup transformation
  7. SQL transformation
  8. Migrating a mapping
  9. PostgreSQL SQL ELT optimization
  10. Data type reference

PostgreSQL Connector

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.

0 COMMENTS

We’d like to hear from you!