Online Documentation for DB Extract for PostgreSQL

Step 6 - Setting up extraction options


At this step you can set the advanced extraction parameters and define query options for data extraction.

 

Metadata options

 

CheckBox Generate "CREATE TABLESPACE" statements

Check this option to add the CREATE TABLESPACE statement(s) to the extraction script.

 

CheckBox Generate "DROP" statements

Check the option to add the DROP statements for the extracted objects.

 

CheckBox Extract privileges

Tick off the option if you want the privileges (permissions on the objects) to be extracted.

 

CheckBox Order by dependencies

This option specifies whether objects should be ordered by their dependencies in the result script or not. If this option is disabled the objects will be ordered by OID.

 

CheckBox Extract dependent objects

This option determines the usage of dependencies between objects in the extraction process.

 

CheckBox CHARACTER and CHARACTER VARYING as CHAR and VARCHAR

Check this option to enable conversion of the corresponding data types in the result script.

 

CheckBox Include session user identifier

Setting this option adds the current session user identifier to the extraction script.

 

hs2113 - Step6 - Setting up extraction options

 

 

Data options

 

Records in block / CheckBox Insert "COMMIT" after each block

These controls allow you to define whether the COMMIT statement is inserted into the script or not, and to define the number of records in each block to be supplemented with this statement.

 

CheckBox Delete existing records before insert

Generates the DELETE FROM statements before the INSERT INTO statements.

 

CheckBox Use "INSERT" statements instead of "COPY" statement

If this option is checked, INSERT INTO statements are generated instead of PostgreSQL COPY statements to populate the extracted tables with data.

 

CheckBox Extract BLOBs

This option enables/disables BLOB fields extraction. Please note that in this case the generated SQL script will work correctly on version 8.1 and higher.

 

Data query options

This grid allows you to specify additional options for the SELECT statements used for data extraction.

 

Database name

This column represents the list of the databases containing the tables selected for data extraction.

 

Limit data

By setting non-zero values in this column you can limit the number of records extracted from each table.

 

Table name

This column contains the names of the tables (with the names of the schemas they belong to).

 

Table data filter

Here you can specify the WHERE clauses for data extraction from each of the tables.

 

Note that you can define data query options not only for a single table, but also for multiple tables at a time by using corresponding items of the context menu of the Data query options grid.

 

Step 6-7 - Context menu

 

 

When you are done, press the Next button to proceed to the next step of the wizard.