Home
SQL Image Viewer online help Prev Page Prev Page
Introduction
About SQL Image Viewer
Version history
Contact us
User Guide
System requirements
Editor command selection
Exporting large number of images
Folders and files
Reference Guide
Main menu
Connect to Database
Connecting to Firebird databases
Connecting to MySQL databases
Connecting to Oracle databases
Connecting to SQLite databases
Connecting to SQL Server databases
Connecting using ODBC
Connecting to a DB2 database
Connecting to a PostgreSQL database
Options
General options
Editor options
Thumbnail options
Image view
Check for updates
About
The work area
SQL editor
Table browser
Results
Other binary data
Image viewer
Hex viewer
Export items wizard
Exporting Microsoft Access OLE data
Post-processing Office files
Image options
File naming convention
Datetime format specifiers
Command line interface
Parameters, logs and exit codes
Advanced options
CROP option
Troubleshooting
Expired trial
Invalid licenses
Unidentified images or binary data
DICOM images

Connecting to a PostgreSQL database

SQL Image Viewer supports PostgreSQL databases via the use of the PostgreSQL ODBC driver. You can download the latest driver using this URL (at time of writing): http://www.postgresql.org/ftp/odbc/versions/msi/

When setting up the ODBC driver, it is important to set the 'Use Declare/Fetch
' option. Set this option so that images are retrieved on demand. This is especially important when exporting images. If this option is not set, the ODBC driver will retrieve all the images from the database before saving them to disk, which consumes a lot of system memory. When this option is set, the ODBC driver retrieves the images on demand.

connect-postgresql-02

Another important setting is the 'Max Varchar
' value. You should set his value to the size of the single largest image that you will retrieve from your database. E.g. if your database has 1000 images, and the largest image is less than 1 MB, you should set the 'Max Varchar' value to 1048576. If you attempt to retrieve images that exceed this 'Max Varchar' value, the ODBC driver will report a 'Variable length column overflow error' exception.

connect-postgresql-01