On this page

    Postgres

    Dremio Configuration

    General

    Connection

    Name Description
    Host Postgres host name.
    Port Postgres port number. Defaults to 5432.
    Database Database name.
    Encrypt connection Enables encrypted connections to Postgres using SSL. . Encryption validation mode can be modified under Advanced Options.

    Authentication

    • No authentication method
    • Master Authentication method (default)
      • Username – Oracle user name
      • Password – Oracle password
    • Secret resource url

    Advanced Options

    • Record Fetch Size: Number of records to fetch at once. Set to 0 (zero) to have Dremio automatically decide. By default, this is set to 10.
    • Maximum idle connections: The total number of connections allowed to be idle at a given time. By default, this is set to 8.
    • Connection idle time (s): The amount of time (in seconds) allowed for a connection to remain idle before the connection is terminated. By default, this is set to 60.
    • Query timeout: The amount of time (in seconds) allowed to wait for the results of a query. If this time expires, the connection being used is returned to an idle state.
    • Enable legacy dialect

    Encryption

    Validation modes include:

    • Validate certificate and hostname (default)
    • Validate certificate only
    • Do not validate certificate or hostname

    Reflection Refresh

    • Never refresh – Specifies how often to refresh based on hours, days, weeks, or never.
    • Never expire – Specifies how often to expire based on hours, days, weeks, or never.

    Metadata

    Dataset Handling

    • Remove dataset definitions if underlying data is unavailable (Default).
      If this box is not checked and the underlying files under a folder are removed or the folder/source is not accessible, Dremio does not remove the dataset definitions. This option is useful in cases when files are temporarily deleted and put back in place with new sets of files.

    Metadata Refresh

    • Dataset Discovery – Refresh interval for top-level source object names such as names of DBs and tables.
      • Fetch every – Specify fetch time based on minutes, hours, days, or weeks. Default: 1 hour
    • Dataset Details – The metadata that Dremio needs for query planning such as information needed for fields, types, shards, statistics, and locality.
      • Fetch mode – Specify either Only Queried Datasets, All Datasets, or As Needed. Default: Only Queried Datasets
        • Only Queried Datasets – Dremio updates details for previously queried objects in a source.
          This mode increases query performance because less work is needed at query time for these datasets.
        • All Datasets – Dremio updates details for all datasets in a source. This mode increases query performance because less work is needed at query time.
        • As Needed – Dremio updates details for a dataset at query time. This mode minimized metadata queries on a source when not used, but might lead to longer planning times.
      • Fetch every – Specify fetch time based on minutes, hours, days, or weeks. Default: 1 hour
      • Expire after – Specify expiration time based on minutes, hours, days, or weeks. Default: 3 hours

    Sharing

    You can specify which users can edit. Options include:

    • All users can edit.
    • Specific users can edit.

    Predicate Pushdowns

    Dremio offloads these operations to Postgres.

    *, +, -, /, %
    <, <=, <>, =, >, >=, !=
    AND, NOT, OR, ||
    ABS
    ACOS
    ADD_MONTHS
    ASIN
    ATAN
    ATAN2
    AVG
    CAST
    CBRT
    CEIL
    CEILING
    CHAR_LENGTH
    CHARACTER_LENGTH
    CONCAT
    COS
    COT
    COVAR_POP
    COVAR_SAMP
    DATE_ADD
    DATE_SUB
    DATE_TRUNC_CENTURY
    DATE_TRUNC_DAY
    DATE_TRUNC_DECADE
    DATE_TRUNC_HOUR
    DATE_TRUNC_MINUTE
    DATE_TRUNC_MONTH
    DATE_TRUNC_QUARTER
    DATE_TRUNC_SECOND
    DATE_TRUNC_WEEK
    DATE_TRUNC_YEAR
    DEGREES
    E
    EXP
    EXTRACT_CENTURY
    EXTRACT_DAY
    EXTRACT_DECADE
    EXTRACT_DOW
    EXTRACT_DOY
    EXTRACT_EPOCH
    EXTRACT_HOUR
    EXTRACT_MILLENNIUM
    EXTRACT_MINUTE
    EXTRACT_MONTH
    EXTRACT_QUARTER
    EXTRACT_SECOND
    EXTRACT_WEEK
    EXTRACT_YEAR
    FLOOR
    IS DISTINCT FROM
    IS NOT DISTINCT FROM
    IS NOT NULL
    IS NULL
    LAST_DAY
    LCASE
    LEFT
    LENGTH
    LIKE
    LN
    LOCATE
    LOG
    LOG10
    LOWER
    LPAD
    LTRIM
    MAX
    MEDIAN
    MIN
    MOD
    PERCENT_CONT
    PERCENT_DISC
    PI
    POSITION
    POW
    POWER
    RADIANS
    REGEXP_LIKE
    REPLACE
    REVERSE
    RIGHT
    ROUND
    RPAD
    RTRIM
    SIGN
    SIN
    SQRT
    STDDEV
    STDDEV_POP
    STDDEV_SAMP
    SUBSTR
    SUBSTRING
    SUM
    TAN
    TO_CHAR
    TO_DATE
    TRIM
    TRUNC
    TRUNCATE
    UCASE
    UPPER
    VAR_POP
    VAR_SAMP

    For More Information