How to import data from PostgreSQL local database?

Import data from PostgreSQL




You can import data from the PostgreSQL database into Zoho DataPrep using Zoho Databridge. Click here to know about Zoho Databridge.

Before looking into how to import data, let's take a look at the pre-requisites to connect to the PostgreSQL database. 

Prerequisites for PostgreSQL

Please ensure the following conditions are met before proceeding with connecting to your PostgreSQL.

1. Provide database read permissions to the Zoho DataPrep server.

2. Ensure you have the correct login credentials for your database. As a best practice, try connecting to your target database from the Zoho DataPrep server, using the native database management software available for the respective database.

Enable remote connections

Follow the steps below to enable remote connections:

  • Open the file pg_hba.conf found under the PostgreSQL_Home/data/folder. (<PostgreSQL_Home> refers to the directory where PostgreSQL database is installed.)
  • Add the following line, and save the file.

host all all <IP address> trust

Replace <IP address> with the IP address of the Zoho DataPrep server. The IP address must be mentioned along with the subnet mask. For example: 192.168.1.1/24.  

  • Open the file postgresql.conf found under the same <PostgreSQL_Home>/data/ folder. 
  • Find the key listen_address = and add the IP address of the Zoho DataPrep server.

listen_address = '<IP address>'

Replace <IP address> with the IP address of the Zoho DataPrep server. For example: 192.168.1.1.

To import data from PostgreSQL

1. Open an existing pipeline or create a pipeline from the Home Page, Pipelines tab or Workspaces tab and click the Add data option.
InfoInfo: You can also click the Import data  icon at the top of the pipeline builder to bring data from multiple sources into the pipeline.


2. In the next screen, choose the required database or click the Databases category from the left pane. 



3. Select New connection from the Connection drop down. If you have existing connections, you can choose the required connection from the Connection drop down. 

4. Give your connection a name under the Connection name section.

5. Zoho Databridge is a tool that facilitates importing data from local databases. Databridge is mandatory to import data from any local database.
Notes
Note: If this is the first time you are downloading Zoho Databridge, see how to install it here.



6. Once you have installed Databridge on your machine, select your Databridge from the Databridge drop-down. 
Notes
Note: Select the Databridge which is installed in the same network as the database you want to import the data from.

7. Select PostgreSQL in the Database type drop down and enter the Database server host name and Port number.

8. Enter your Database name and provide the username and password if authentication is required.

Note: You can also select the Use SSL checkbox if your database server has been setup to serve encrypted data through SSL.



9. Save your database configuration and connect to the database using Connect.
Notes
Note: The connection configuration will be automatically saved for importing from the database in the future. Credentials are securely encrypted and stored.

10. Select the tables that need to be imported. 




11. You can also use alternatively a SQL query to import data. 
Warning
The incremental fetch option is not available when the data is imported using a query from databases. Click here to know more about incremental fetch from local database.


11. Click Import to begin importing data from your account.


12. Once you complete importing data, the Pipeline builder page opens and you can start applying transforms. You can also right-click the stage and choose the Prepare data option to prepare your data using various transforms in the DataPrep Studio page. Click here to know more about the transforms. 



13Once you are done creating your data flow and applying necessary transforms in your stages, you can right-click a stage and add a destination to complete your data flow.
Notes
Note:  After adding a destination to the pipeline, you can try executing your pipeline using a manual run at first. Once you make sure manual run works, you can then set up schedule to automate the pipeline. Learn about the different types of runs here.
While configuring the Schedule, Backfill, Manual reload, Webhooks, or Zoho Flow, the import configuration needs to be mandatorily setup for all the sources. Without setting up the import configuration, the run cannot be saved. Click here to know more about how to set up import configuration.

14. After configuring a run, a pipeline job will be created at the run time. You can view the status of a job with the granular details in the Job summary. Click here to know more about the job summary.

To edit the PostgreSQL connection

DataPrep saves your data connections to avoid the hassle of keying in the credentials every time you need to connect to a data source or destination. You can always edit the saved data connection and update them with new parameters or credentials using the Edit connection option. 

1. While creating a new dataset, click Saved data connections from the left pane in the Choose a data source section. 



2. You can manage your saved data connections right from the data import screen. Click the ellipsis (3 dots) icon to share, edit, view the connection overview, or remove the connection. 



3. Click the Edit connection option to update the saved connection with new parameters or credentials.





      Create. Review. Publish.

      Write, edit, collaborate on, and publish documents to different content management platforms.

      Get Started Now


        Access your files securely from anywhere

          Zoho CRM Training Programs

          Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

          Zoho CRM Training
            Redefine the way you work
            with Zoho Workplace

              Zoho DataPrep Personalized Demo

              If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

              Zoho CRM Training

                Create, share, and deliver

                beautiful slides from anywhere.

                Get Started Now


                  Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                  BOOK A SESSION







                              Quick LinksWorkflow AutomationData Collection
                              Web FormsEnterpriseOnline Data Collection Tool
                              Embeddable FormsBankingBegin Data Collection
                              Interactive FormsWorkplaceData Collection App
                              CRM FormsCustomer ServiceAccessible Forms
                              Digital FormsMarketingForms for Small Business
                              HTML FormsEducationForms for Enterprise
                              Contact FormsE-commerceForms for any business
                              Lead Generation FormsHealthcareForms for Startups
                              Wordpress FormsCustomer onboardingForms for Small Business
                              No Code FormsConstructionRSVP tool for holidays
                              Free FormsTravelFeatures for Order Forms
                              Prefill FormsNon-Profit
                              Intake FormsLegalMobile App
                              Form DesignerHRMobile Forms
                              Card FormsFoodOffline Forms
                              Assign FormsPhotographyMobile Forms Features
                              Translate FormsReal EstateKiosk in Mobile Forms
                              Electronic Forms
                              Drag & drop form builder

                              Notification Emails for FormsAlternativesSecurity & Compliance
                              Holiday FormsGoogle Forms alternative GDPR
                              Form to PDFJotform alternativeHIPAA Forms
                              Email FormsEncrypted Forms

                              Secure Forms

                              WCAG

                                      Create. Review. Publish.

                                      Write, edit, collaborate on, and publish documents to different content management platforms.

                                      Get Started Now






                                                        You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                            Manage your brands on social media


                                                              • Desk Community Learning Series


                                                              • Digest


                                                              • Functions


                                                              • Meetups


                                                              • Kbase


                                                              • Resources


                                                              • Glossary


                                                              • Desk Marketplace


                                                              • MVP Corner


                                                              • Word of the Day


                                                              • Ask the Experts


                                                                Zoho Sheet Resources

                                                                 

                                                                    Zoho Forms Resources


                                                                      Secure your business
                                                                      communication with Zoho Mail


                                                                      Mail on the move with
                                                                      Zoho Mail mobile application

                                                                        Stay on top of your schedule
                                                                        at all times


                                                                        Carry your calendar with you
                                                                        Anytime, anywhere




                                                                              Zoho Sign Resources

                                                                                Sign, Paperless!

                                                                                Sign and send business documents on the go!

                                                                                Get Started Now




                                                                                        Zoho TeamInbox Resources





                                                                                                  Zoho DataPrep Demo

                                                                                                  Get a personalized demo or POC

                                                                                                  REGISTER NOW


                                                                                                    Design. Discuss. Deliver.

                                                                                                    Create visually engaging stories with Zoho Show.

                                                                                                    Get Started Now









                                                                                                                        • Related Articles

                                                                                                                        • Import data from Heroku PostgreSQL

                                                                                                                          Zoho DataPrep allows importing data from PostgreSQL, a cloud database, also known as Postgres. It is a free and open-source relational database management system emphasizing extensibility and SQL compliance. To import data from Heroku PostgreSQL 1. ...
                                                                                                                        • Import data from Microsoft Azure PostgreSQL

                                                                                                                          Zoho DataPrep supports importing data from Microsoft Azure under cloud database category. Azure is a cloud computing platform operated by Microsoft that provides access, management, and development of applications and services. Before looking into ...
                                                                                                                        • Import data from Google Cloud SQL PostgreSQL

                                                                                                                          Zoho DataPrep allows you to import data from Google Cloud SQL, a cloud database. It is a fully-managed database service that helps you set up, maintain, manage, and administer your relational databases on Google Cloud Platform. Before looking into ...
                                                                                                                        • Import data from Amazon RDS PostgreSQL

                                                                                                                          Zoho DataPrep supports importing data from Amazon RDS, a cloud database. Amazon RDS is also known as Amazon Relational Database Service and it helps to set up, operate, and scale databases. Before looking into how to import data, let's take a look at ...
                                                                                                                        • Import data from Amazon RDS-Amazon Aurora PostgreSQL

                                                                                                                          Zoho DataPrep supports importing data from Amazon RDS, a cloud database. Amazon RDS is also known as Amazon Relational Database Service and it helps to set up, operate, and scale databases. To import data from Amazon RDS-Amazon Aurora PostgreSQL 1. ...
                                                                                                                          Wherever you are is as good as
                                                                                                                          your workplace

                                                                                                                            Resources

                                                                                                                            Videos

                                                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                            eBooks

                                                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                            Webinars

                                                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                            CRM Tips

                                                                                                                            Make the most of Zoho CRM with these useful tips.



                                                                                                                              Zoho Show Resources