The tPostgresqlOutputBulk and tPostgresqlBulkExec components are generally used together as part of a
two step process. In the first step, an output file is generated. In the second step,
this file is used in the INSERT operation used to feed a database. These two steps are
fused together in the tPostgresqlOutputBulkExec
component, detailed in a separate section. The advantage of having two separate steps is
that it makes it possible to transform data before it is loaded in the database.
|
Component family |
Databases/Postgresql |
|
|
Function |
Writes a file with columns based on the defined delimiter and the |
|
|
Purpose |
Prepares the file to be used as parameters in the INSERT query to |
|
|
Basic settings |
Property type |
Either Built-in or Repository Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
|
Built-in: No property data stored |
|
|
|
Repository: Select the repository |
|
|
File Name |
Name of the file to be generated. WarningThis file is generated on the local machine or a shared folder |
|
|
Append |
Select this check box to add the new rows at the end of the |
|
|
Schema and Edit |
A schema is a row description, it defines the number of fields to be processed and Since version 5.6, both the Built-In mode and the Repository mode are Click Edit schema to make changes to the schema. If the
|
|
|
|
Built-In: You create and store the schema locally for this |
|
|
|
Repository: You have already created the schema and When the schema to be reused has default values that are integers or functions, ensure that For more details, see https://help.talend.com/display/KB/Verifying+default+values+in+a+retrieved+schema. |
|
Row separator |
String (ex: ” |
|
|
|
Field separator |
Character, string or regular expression to separate fields. |
|
|
Include header |
Select this check box to include the column header to the file. |
|
|
Encoding |
Select the encoding from the list or select Custom and define it manually. This field is |
|
|
tStatCatcher Statistics |
Select this check box to collect log data at the component |
|
|
Enable parallel execution |
Select this check box to perform high-speed data processing, by treating multiple data flows
Note that when parallel execution is enabled, it is not possible to use global variables to Warning
|
|
Global Variables |
NB_LINE: the number of rows read by an input component or 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 Talend Studio |
|
|
Usage |
This component is to be used along with tPostgresqlBulkExec component. Used together they |
|
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
For use cases in relation with tPostgresqlOutputBulk,
see the following scenarios: