On this page
...
If the target table does not exist and the input is binary, the Snap does not fetch the table's schema from the input. The table's schema must be passed to the Snap through the second input view.
Known Issue: If database metadata from an upstream Snap contains geography column data such as modifiers, those modifiers may not be written to the target table.
Workaround: To write geographic data to the target table, create the table using the PostgreSQL - Execute Snap.
Troubleshooting
None.
...
Input/Output | Type of View | Number of Views | Compatible Upstream and Downstream Snaps | Description | ||
---|---|---|---|---|---|---|
Input |
|
|
| The data to be loaded into the PostgreSQL table. This Snap has one document input view by default. A second view can be added for metadata for the table as a binary or document stream so that the target absent table can be created in the database with a similar schema as the source table. This schema is usually from the output of a database Select Snap.
| ||
Output | Document |
|
| The Snap outputs one document specifying the status, with the records count that are being inserted into the table. Any error occurring during the process is routed to the error view. |
...
Field Name | Field Dependency | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Label* | N/A | Specify the name for the account. We recommend that you update the account name, if there is more than one account in your project. Default Value: N/A | ||||||||
Schema name | N/A | Specify the database schema name in PostgreSQL. In case it is not defined, then the suggestion for the Table name retrieves all table names of all schemas. The property is suggestible and will retrieve available database schemas during suggest values. Default Value: N/A | ||||||||
Table name* | N/A | Specify the PostgreSQL table on which to execute the bulk load operation. Default Value: N/A | ||||||||
Create table if not present | N/A |
Default value: Not selected | ||||||||
Columns | N/A | Specify the columns to be loaded/copied. If you do not configure this field set, then all columns in the input data stream are loaded into the target table. You can also set how the null values should be handled for each column.
Default Value: N/A | ||||||||
Column | N/A | Specify the name of the column/field. This is a suggestible field and lists all field names in the input. Default Value: N/A | ||||||||
Force Non-Null | N/A | Select this check box to not match the selected column's value against the null string. The Snap reads empty null strings as zero-length strings rather than nulls, even when they are not quoted. Default Value: Not selected | ||||||||
Force Null | N/A | Select this check box to match the selected column value against the null string, even if it has been quoted. If a match is found, the field value is set to NULL. By default, where the null string is empty, the Snap converts a quoted empty string into NULL. Default Value: Not selected | ||||||||
Format | N/A | Choose the data format to be written. This field is applicable only when using the binary input view.
Default Value: Text | ||||||||
Header Provided | N/A | Select this check box to include the input data has a header. Applicable only when using binary input view and CSV option in the Format field. Default Value: Not selected | ||||||||
Encoding | N/A | Choose the encoding to be used. This is limited to the encodings supported by the PostgreSQL server. The available options are:
Default Value: UTF8 | ||||||||
Snap Execution | N/A | Select one of the three modes in which the Snap executes. Available options are:
Default Value: Execute only |
See Also
...
...