{"id":6767,"date":"2019-04-13T11:15:16","date_gmt":"2019-04-13T11:15:16","guid":{"rendered":"https:\/\/zappysys.com\/blog\/?p=6767"},"modified":"2019-09-13T11:38:27","modified_gmt":"2019-09-13T11:38:27","slug":"ssis-load-postgresql-table-data-csv-file","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/","title":{"rendered":"Load PostgreSQL Table Data to CSV File in SSIS"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-6771 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\" alt=\"ssis-PostgreSql-Source\" width=\"100\" height=\"100\" \/><\/a>ZappySys provides high performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to\u00a0Load PostgreSQL Table Data to CSV File using\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a>. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance.<\/p>\n<p>In nutshell,\u00a0this post will focus on how to Load PostgreSQL Table Data and write into CSV File using\u00a0<a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/index.htm#page=trash-destination.htm\" target=\"_blank\" rel=\"noopener\">Trash Destination<\/a> in few clicks. You can also use the\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-csv-file-destination\/\" target=\"_blank\" rel=\"noopener\">CSV Destination<\/a>\u00a0instead of Trash destination if you wants more option like\u00a0compressed file gzip (*.gz) or zip,\u00a0wants to splitting the file by row count of file size and more.<\/p>\n<h2><span id=\"Prerequisite\">Prerequisite<\/span><\/h2>\n<ol>\n<li>First, you will need to have SSIS installed<\/li>\n<li>Secondly, make sure to have SSDT<\/li>\n<li>Thirdly, You have obtained PostgreSQL Credential.<\/li>\n<li>Finally, do not forget to install\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\" target=\"_blank\" rel=\"noopener\">ZappySys\u00a0SSIS PowerPack<\/a><\/li>\n<\/ol>\n<p><strong>Components Mentioned in this article<\/strong><br \/>\n<div class=\"su-table su-table-alternate\">\n<table style=\"width: 390px;height: 160px\">\n<tbody>\n<tr style=\"height: 40px\">\n<td style=\"width: 33px;height: 40px\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i1.wp.com\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/postgresql-source\/ssis-postgresql-source.png\" alt=\"SSIS Amazon S3 CSV File Source\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"width: 357px;height: 40px\"><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a><\/td>\n<\/tr>\n<tr style=\"height: 40px\">\n<td style=\"width: 33px;height: 40px\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/csv-destination\/ssis-csv-file-destination.png?w=720&amp;ssl=1\" alt=\"SSIS Amazon S3 CSV File Destination\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"width: 357px;height: 40px\"><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-csv-file-destination\/\" target=\"_blank\" rel=\"noopener\">CSV Destination<\/a><\/td>\n<\/tr>\n<tr style=\"height: 40px\">\n<td style=\"width: 33px;height: 40px\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i2.wp.com\/zappysys.com\/images\/ssis-powerpack\/SSIS-Trash-Destination-Adapter.png?w=720&amp;ssl=1\" alt=\"SSIS Amazon S3 XML File Source\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"width: 357px\"><a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/trash-destination.htm\" target=\"_blank\" rel=\"noopener\">Trash Destination<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>What is PostgreSQL?<\/h2>\n<p>PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads. The origins of PostgreSQL date back to 1986 as part of the <a href=\"https:\/\/www.postgresql.org\/docs\/current\/history.html\" target=\"_blank\" rel=\"noopener\">POSTGRES<\/a> project at the University of California at Berkeley and has more than 30 years of active development on the core platform.<\/p>\n<p>PostgreSQL has earned a strong reputation for its proven architecture, reliability, data integrity, robust feature set, extensibility, and the dedication of the open source community behind the software to consistently deliver performant and innovative solutions. PostgreSQL runs on <a href=\"https:\/\/www.postgresql.org\/download\/\" target=\"_blank\" rel=\"noopener\">all major operating systems<\/a>, has been <a href=\"https:\/\/en.wikipedia.org\/wiki\/ACID\" target=\"_blank\" rel=\"noopener\">ACID<\/a>-compliant since 2001, and has powerful add-ons such as the popular <a href=\"https:\/\/postgis.net\/\" target=\"_blank\" rel=\"noopener\">PostGIS<\/a> geospatial database extender. It is no surprise that PostgreSQL has become the open source relational database of choice for many people and organisations.<\/p>\n<p><a href=\"https:\/\/www.postgresql.org\/docs\/current\/tutorial.html\" target=\"_blank\" rel=\"noopener\">Getting started<\/a> with using PostgreSQL has never been easier &#8211; pick a project you want to build, and let PostgreSQL safely and robustly store your data.<\/p>\n<h2>Download and Install PostgreSQL<\/h2>\n<p>Please go to below download link and download the Windows version Binary package and install it and follow the steps from the installer.<\/p>\n<p><a href=\"https:\/\/www.postgresql.org\/download\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.postgresql.org\/download\/<\/a><\/p>\n<div id=\"attachment_6774\" style=\"width: 530px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-download.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6774\" class=\"wp-image-6774 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-download-e1555505700480.png\" alt=\"ssis-PostgreSql-download\" width=\"520\" height=\"706\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-download-e1555505700480.png 520w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-download-e1555505700480-221x300.png 221w\" sizes=\"(max-width: 520px) 100vw, 520px\" \/><\/a><p id=\"caption-attachment-6774\" class=\"wp-caption-text\">PostgreSQL Download<\/p><\/div>\n<h2>Create PostgreSQL Database and Table<\/h2>\n<ol>\n<li>To do this, we will first open the pgAdmin Panel.\n<div id=\"attachment_6776\" style=\"width: 434px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-open-pgadmin.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6776\" class=\"wp-image-6776 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-open-pgadmin.png\" alt=\"Open pgAdmin\" width=\"424\" height=\"680\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-open-pgadmin.png 424w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-open-pgadmin-187x300.png 187w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/a><p id=\"caption-attachment-6776\" class=\"wp-caption-text\">Open\u00a0PostgreSQL pgAdmin Panel<\/p><\/div><\/li>\n<li>It will open the pgAdmin Panel in the browser. Select Server\u00a0and Right click on Databases to create database.\n<div id=\"attachment_6777\" style=\"width: 555px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-select-createdatabase.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6777\" class=\"wp-image-6777 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-select-createdatabase.png\" alt=\"PostgreSql Select Create Database\" width=\"545\" height=\"484\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-select-createdatabase.png 545w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-select-createdatabase-300x266.png 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/a><p id=\"caption-attachment-6777\" class=\"wp-caption-text\">PostgreSQL Select Create Database<\/p><\/div><\/li>\n<li>Enter the Database name and click on Save to create it.\n<div id=\"attachment_6778\" style=\"width: 727px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-create-database.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6778\" class=\"wp-image-6778 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-create-database.png\" alt=\"Create PostgreSQL Database\" width=\"717\" height=\"583\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-create-database.png 717w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-create-database-300x244.png 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/a><p id=\"caption-attachment-6778\" class=\"wp-caption-text\">Create PostgreSQL Database<\/p><\/div><\/li>\n<li>Now select the created database under it expand Schemas and right click on Tables and click on create Table.\n<div id=\"attachment_6780\" style=\"width: 575px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-create-table.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6780\" class=\"wp-image-6780 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-create-table.png\" alt=\"PostgreSQL Select Create Table\" width=\"565\" height=\"846\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-create-table.png 565w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-create-table-200x300.png 200w\" sizes=\"(max-width: 565px) 100vw, 565px\" \/><\/a><p id=\"caption-attachment-6780\" class=\"wp-caption-text\">PostgreSQL Select Create Table<\/p><\/div><\/li>\n<li>Now enter the table name and go to columns tab.\n<div id=\"attachment_6782\" style=\"width: 531px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-name.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6782\" class=\"wp-image-6782 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-name.png\" alt=\"PostgreSQL Enter Table Name\" width=\"521\" height=\"472\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-name.png 521w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-name-300x272.png 300w\" sizes=\"(max-width: 521px) 100vw, 521px\" \/><\/a><p id=\"caption-attachment-6782\" class=\"wp-caption-text\">PostgreSQL Enter Table Name<\/p><\/div><\/li>\n<li>Add the columns by clicking add button and give the desire column name and select the datatype for the same.\n<div id=\"attachment_6783\" style=\"width: 622px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-columns.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6783\" class=\"wp-image-6783 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-columns.png\" alt=\"PostgreSQL Add Table Columns\" width=\"612\" height=\"500\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-columns.png 612w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-add-table-columns-300x245.png 300w\" sizes=\"(max-width: 612px) 100vw, 612px\" \/><\/a><p id=\"caption-attachment-6783\" class=\"wp-caption-text\">PostgreSQL Add Table Columns<\/p><\/div><\/li>\n<li>Now, let&#8217;s insert some data using Query Editor.\n<div id=\"attachment_6790\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-insert-data-in-table.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6790\" class=\"size-medium_large wp-image-6790\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-insert-data-in-table-768x712.png\" alt=\"PostgreSQL Insert Data in Table\" width=\"720\" height=\"668\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-insert-data-in-table-768x712.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-insert-data-in-table-300x278.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-insert-data-in-table.png 843w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-6790\" class=\"wp-caption-text\">PostgreSQL Insert Data in Table<\/p><\/div><\/li>\n<li>That&#8217;s it, now let&#8217;s move forward to read the data from this table using\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a> in the next the section.\n<div id=\"attachment_6792\" style=\"width: 351px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-query-data.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6792\" class=\"size-full wp-image-6792\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-query-data.png\" alt=\"PostgreSQL Select Query Data\" width=\"341\" height=\"426\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-query-data.png 341w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-select-query-data-240x300.png 240w\" sizes=\"(max-width: 341px) 100vw, 341px\" \/><\/a><p id=\"caption-attachment-6792\" class=\"wp-caption-text\">PostgreSQL Select Query Data<\/p><\/div><\/li>\n<\/ol>\n<h2><span id=\"Getting_Started\">Getting Started<\/span><\/h2>\n<p>In order to start, we will show several examples. ZappySys includes an\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a> that will help you extract large amount of data from a PostgreSQL Database. PostgreSQL Source\u00a0supports Multiple modes (i.e. Table or Query) to read data from PostgreSQL Database and many more operations. Here we are showing you is, How to read data from PostgreSQL collection.<\/p>\n<p>You can connect to your PostgreSQL database by entering your PostgreSQL credentials.<\/p>\n<h2>Load PostgreSQL Table Data to CSV File<\/h2>\n<p>Let\u00b4s start with an example. In this SSIS PostgreSQL Source Task example, we will load the\u00a0PostgreSQL table data to CSV file.<\/p>\n<ol>\n<li>First of All, Drag and drop Data Flow Task from SSIS Toolbox and double click it to edit.\n<div id=\"attachment_7934\" style=\"width: 470px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7934\" class=\"size-full wp-image-7934\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task.png\" alt=\"Drag and Drop SSIS Data Flow Task from SSIS Toolbox\" width=\"460\" height=\"155\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task.png 460w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/09\/ssis-drag-drop-data-flow-task-300x101.png 300w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/a><p id=\"caption-attachment-7934\" class=\"wp-caption-text\">Drag and Drop : Data Flow Task from SSIS Toolbox<\/p><\/div><\/li>\n<li>Drag and Drop PostgreSQL Source Task from the SSIS Toolbox and double click on it to edit it.\n<div id=\"attachment_6795\" style=\"width: 618px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-drag-drop-PostgreSQL-source.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6795\" class=\"size-full wp-image-6795\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-drag-drop-PostgreSQL-source.png\" alt=\"PostgreSQL Source\" width=\"608\" height=\"321\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-drag-drop-PostgreSQL-source.png 608w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-drag-drop-PostgreSQL-source-300x158.png 300w\" sizes=\"(max-width: 608px) 100vw, 608px\" \/><\/a><p id=\"caption-attachment-6795\" class=\"wp-caption-text\">PostgreSQL Source<\/p><\/div><\/li>\n<li>Let&#8217;s create a connection for PostgreSQL Database.\n<div id=\"attachment_6796\" style=\"width: 669px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-create-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6796\" class=\"size-full wp-image-6796\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-create-connection.png\" alt=\"Create PostgreSQL Database Connection\" width=\"659\" height=\"746\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-create-connection.png 659w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-create-connection-265x300.png 265w\" sizes=\"(max-width: 659px) 100vw, 659px\" \/><\/a><p id=\"caption-attachment-6796\" class=\"wp-caption-text\">Create PostgreSQL Database Connection<\/p><\/div><\/li>\n<li>Let&#8217;s select the Table mode and select the table and click on preview.\n<div id=\"attachment_6798\" style=\"width: 658px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-table.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6798\" class=\"size-full wp-image-6798\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-table.png\" alt=\"PostgreSQL Table Preview\" width=\"648\" height=\"622\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-table.png 648w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-table-300x288.png 300w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/a><p id=\"caption-attachment-6798\" class=\"wp-caption-text\">PostgreSQL Table Preview<\/p><\/div><\/li>\n<li>You can also use the query mode to filter the data and do more operation using query. You can find our several Examples also by clicking on &lt;&lt;View Examples&gt;&gt;.\n<div id=\"attachment_6797\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-query.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6797\" class=\"size-medium_large wp-image-6797\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-query-768x529.png\" alt=\"PostgreSQL Query Preview\" width=\"720\" height=\"496\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-query-768x529.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-query-300x207.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-preview-query.png 857w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-6797\" class=\"wp-caption-text\">PostgreSQL Query Preview<\/p><\/div><\/li>\n<li>Now let&#8217;s add Trash destination Task and edit it and enter the CSV File Path.\n<div id=\"attachment_6799\" style=\"width: 730px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-to-trash-destination.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6799\" class=\"size-medium_large wp-image-6799\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-to-trash-destination-768x525.png\" alt=\"Trash Destination : Setup CSV File Path\" width=\"720\" height=\"492\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-to-trash-destination-768x525.png 768w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-to-trash-destination-300x205.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-to-trash-destination.png 792w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><p id=\"caption-attachment-6799\" class=\"wp-caption-text\">Trash Destination : Setup CSV File Path<\/p><\/div><\/li>\n<li>That&#8217;s it now execute the package and it will load data from\u00a0PostgreSQL Table to CSV File.\n<div id=\"attachment_6800\" style=\"width: 234px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-csv-data.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6800\" class=\"size-full wp-image-6800\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSQL-csv-data.png\" alt=\"PostgreSQL : CSV Data\" width=\"224\" height=\"282\" \/><\/a><p id=\"caption-attachment-6800\" class=\"wp-caption-text\">PostgreSQL : CSV Data<\/p><\/div><\/li>\n<\/ol>\n<h2><span id=\"Conclusion\">Conclusion<\/span><\/h2>\n<p>Above all, in this blog, we learned how to Read data from PostgreSQL in SSIS. We used <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-postgresql-source\/\" target=\"_blank\" rel=\"noopener\">SSIS PostgreSQL Source<\/a>\u00a0to read the data from\u00a0PostgreSQL Table and load data into CSV File. You can\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/\">download SSIS PowerPack here<\/a>\u00a0to try many other scenarios not discussed in this blog along with 70+ other components.<\/p>\n<h2><span id=\"References\">References<\/span><\/h2>\n<p>Finally, you can use the following links for more information:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.postgresql.org\/about\/\" target=\"_blank\" rel=\"noopener\">About PostgreSQL<\/a><\/li>\n<li><a href=\"https:\/\/www.postgresql.org\/docs\/\" target=\"_blank\" rel=\"noopener\">PostgreSQL Documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.tutorialspoint.com\/postgresql\/postgresql_select_query.htm\" target=\"_blank\" rel=\"noopener\">PostgreSQL \u2013 SELECT Query<\/a><\/li>\n<li>Help File : <a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/index.htm#page=ssis-postgresql-source.htm\" target=\"_blank\" rel=\"noopener\">PostgreSQL Source<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction ZappySys provides high performance drag and drop connectors for PostgreSQL Integration. In this post you will see how to\u00a0Load PostgreSQL Table Data to CSV File using\u00a0SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data. PostgreSQL is a powerful, open source relational database with strong reputation for reliability, feature robustness, and performance. In [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6771,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[486,463,485],"tags":[128,482,12],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>Load PostgreSQL Table Data to CSV File in SSIS | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data.\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"Load PostgreSQL Table Data to CSV File in SSIS | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data.\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:published_time\" content=\"2019-04-13T11:15:16+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2019-09-13T11:38:27+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"100\" \/>\r\n\t<meta property=\"og:image:height\" content=\"100\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/\",\"url\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/\",\"name\":\"Load PostgreSQL Table Data to CSV File in SSIS | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\",\"datePublished\":\"2019-04-13T11:15:16+00:00\",\"dateModified\":\"2019-09-13T11:38:27+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35\"},\"description\":\"Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data.\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png\",\"width\":100,\"height\":100,\"caption\":\"ssis-PostgreSql-Source\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Load PostgreSQL Table Data to CSV File in SSIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"url\":\"https:\/\/zappysys.com\/blog\/author\/hshah\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Load PostgreSQL Table Data to CSV File in SSIS | ZappySys Blog","description":"Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/","og_locale":"en_US","og_type":"article","og_title":"Load PostgreSQL Table Data to CSV File in SSIS | ZappySys Blog","og_description":"Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data.","og_url":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/","og_site_name":"ZappySys Blog","article_published_time":"2019-04-13T11:15:16+00:00","article_modified_time":"2019-09-13T11:38:27+00:00","og_image":[{"width":100,"height":100,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ZappySys","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/","url":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/","name":"Load PostgreSQL Table Data to CSV File in SSIS | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","datePublished":"2019-04-13T11:15:16+00:00","dateModified":"2019-09-13T11:38:27+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35"},"description":"Load PostgreSQL Table Data to CSV File using SSIS PostgreSQL Source. PostgreSQL Source\u00a0supports SQL language to query PostgreSQL data.","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2019\/04\/ssis-PostgreSql-Source.png","width":100,"height":100,"caption":"ssis-PostgreSql-Source"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/ssis-load-postgresql-table-data-csv-file\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Load PostgreSQL Table Data to CSV File in SSIS"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/c9dc782c929d0027e2e87e3951ce9d35","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/076a738938c19d459fbfe125c759a0ea?s=96&d=mm&r=g","caption":"ZappySys"},"url":"https:\/\/zappysys.com\/blog\/author\/hshah\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6767"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=6767"}],"version-history":[{"count":19,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6767\/revisions"}],"predecessor-version":[{"id":8000,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/6767\/revisions\/8000"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/6771"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=6767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=6767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=6767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}