tPostgresqlOutput
Executes the action defined on the table and/or on the data contained in the table,
based on the flow incoming from the preceding component in the job.
The tPostgresqlOutput writes,
updates, makes changes or suppresses entries in a database.
tPostgresqlOutput Standard properties
These properties are used to configure tPostgresqlOutput running in the Standard
Job framework.
The Standard
tPostgresqlOutput component belongs to the Databases family.
The component in this framework is available in all Talend
products.
connector. The properties related to database settings vary depending on your database
type selection. For more information about dynamic database connectors, see Dynamic database components.
Basic settings
Database |
Select a type of database from the list and click |
Property type |
Either Built-in or Repository |
 |
Built-in: No property |
 |
Repository: Select the |
Click this icon to open a database connection For more information about setting up and |
|
Use an existing |
Select this check box and in the Component List click the relevant connection component to Note: When a Job contains the parent Job and the child Job, if you
need to share an existing connection between the two levels, for example, to share the connection created by the parent Job with the child Job, you have to:
For an example about how to share a database connection |
|
List of database versions. |
Host |
Database server IP address |
Port |
Listening port number of DB server. |
Database |
Name of the database |
Schema |
Exact name of the schema. |
Username and Password |
DB user authentication data. To enter the password, click the […] button next to the |
Table |
Name of the table to be written. Note that only |
Action on table |
On the table defined, you can perform one of
None
Drop and create table:
Create table: The table
Create table if not
Drop table if exists and
Clear table: The table
Truncate table: The |
Action on data |
On the data of the table defined, you can
Insert: Add new entries
Update: Make changes to Insert or update: Insert a new record. If Update or insert: Update the record with the
Delete: Remove entries Warning:
It is necessary to specify at least one column as a primary key on which the Update and Delete operations are based. You can do that by clicking Edit Schema and selecting the check box(es) next to the column(s) you want to set as primary key(s). For an advanced use, click the Advanced settings view where you can simultaneously define primary keys for the Update and Delete operations. To do that: Select the Use field options check box and then in the Key in update column, select the check boxes next to the column names you want to use as a base for the Update operation. Do the same in the Key in delete column for the Delete operation. Note: The dynamic schema feature can be used in the
following modes: Insert; Update; Insert or update; Update or insert; Delete. |
Schema and Edit Schema |
A schema is a row description. It defines the number of fields Click Edit
This This |
 |
Built-In: You create and store the schema locally for this component |
 |
Repository: You have already created the schema and stored it in the When the schema to be reused has default values that are You can find more details about how to |
Use spatial options |
Note: This check box is available when you
selected the table creation related option from the Action on table list. Note: This check box will disappear if you select the
Enable parallel execution check box in the Advanced settings view. Select this check box to use the PostgreSQL
For more information about the PostgreSQL |
Specify a data source |
Select this check box and specify the alias of a data source created on the This check box is not available when the Use an existing |
Data source alias |
Enter the alias of the data source created on the This field is available only when the Specify a data |
Die on error |
This check box is cleared by default, meaning |
Advanced settings
Use alternate |
Select this option to use a schema other than This option is available when Use an |
Additional JDBC Parameters |
Specify additional JDBC parameters for the This property is not available when the Use an existing connection |
Commit every |
Enter the number of rows to be completed |
Additional Columns |
This option is not offered if you create (with |
 |
Name: Type in the name |
 |
SQL expression: Type in |
 |
Position: Select |
 |
Reference column: Type |
Use save point |
Select this check box to use savepoints in the
transaction. This check box will not be available if you select:
This check box will not work if you:
|
Use field options |
Select this check box to customize a request, |
Debug query mode |
Select this check box to display each step during processing entries |
Support null in “SQL WHERE” |
Select this check box if you want to deal Note: Ensure that the Nullable check box is
selected for the corresponding columns in the schema. |
Convert columns and table to lowercase |
Select this check box to automatically convert the letters in all the column names and the table |
Use Batch |
Select this check box to activate the batch mode for data processing. Note: This check box is available only when you
have selected the Insert, the Update or the Delete option in the Action on data field. |
Batch Size |
Specify the number of records to be processed in each batch. This field appears only when the Use batch mode |
tStat |
Select this check box to collect log data at |
Enable parallel |
Select this check box to perform high-speed data processing, by treating
multiple data flows simultaneously. Note that this feature depends on the database or the application ability to handle multiple inserts in parallel as well as the number of CPU affected. In the Number of parallel executions field, either:
|
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After
NB_LINE_UPDATED: the number of rows updated. This is an
NB_LINE_INSERTED: the number of rows inserted. This is an
NB_LINE_DELETED: the number of rows deleted. This is an
NB_LINE_REJECTED: the number of rows rejected. This is an
QUERY: the query statement processed. This is an After
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component offers the flexibility benefit This component must be used as an output |
Dynamic settings |
Click the [+] button to add a row in the table The Dynamic settings table is For examples on using dynamic parameters, see Reading data from databases through context-based dynamic connections and Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
Limitation |
Due to license incompatibility, one or more JARs required to use |
Related scenarios
For tPostgresqlOutput related topics, see: