Blog

3 Tools to Connect PostgreSQL to Google Sheets

Emma Butler
Emma Butler
May 11, 2020 · 4 min read
Tree held by a hand statue

In search of a better way to visualize, manage and manipulate your data from PostgreSQL? Importing your data into Google Sheets is definitely the easiest and more efficient way to do this. I’ve outlined my favorite 3 tools + a bonus.

 Zapier

Zapier allows for you to connect PostgreSQL to Google Sheets with a few zaps. Once you've created a new sheet in Google Sheets with all your PostgreSQL data, you can create one zap to update Postgres when you insert a new row in Google Sheets, another to update your database when you update cells in Google Sheets, another to update Google Sheets when Postgres is updated and so forth. 

Zapier is extremely easy to start using ASAP with no learning curve. The downside of the Zapier + Google Sheets approach is that you'll have to build many zaps if you want existing records in Google Sheets to be updated when the records in PostgreSQL are updated. Zapier is great if you just want to create a new record in Google Sheets every time a new record is created in PostgreSQL, but the update part may be very painful and you'll probably have to write some SQL to make it work.

Furthermore, it could get pretty expensive depending on your volume of data.

 

Kloud.io

As a Google Sheets add-on, Kloud.io is very easy to set up. Kloud.io allows you to push data from your database and have it be outputted in your Google Sheets. It also has a 2-way data exchange so the data in Google Sheets and your database stay synced. This a great tool to use and in the reviews of Kloud.io Google Sheets add-ons it seems that one of the most popular use cases for Kloud.io is pushing data from PostgreSQL to Google Sheets.

 

Blend.co

Blend.co replicates your data from PostgreSQL into Google Sheets. You can edit and transform it and push it back into PostgreSQL easily and it only takes a few minutes to set up.

Blend.co’s specialty is taking data from different data sources and pushing it back into databases like PostgreSQL and Microsoft SQL Server. However, you cannot push this data to any other CRMs or applications.

Writing a script

If you don't mind writing some code, then you could write a Google Sheets’ script. To learn how to use Google Apps Script, check out this step-by-step tutorial on how to automatically retrieve data from my SQL database to Google Sheets with a script. It includes the actual code to make it work — plus it walks you through the 2 main steps you need to master to connect your Google spreadsheet to PostgreSQL: 1) Creating a Google Sheets script to import a SQL table and 2) Running a Google Sheets script automatically every minute to retrieve SQL data.

There are a few limitations to this approach:

  • First you need to understand how to code
  • Second, it's not 100% reliable, it might break at some point, and you'll have to spend time debugging

Conclusion & Bonus tool

The reason you want to push PostgreSQL data to Google Sheets is probably because you want to make this data accessible to team members who are confortable in a spreadsheet but maybe not confortable with SQL or with a Business Intelligence tool.

If that's the case, you should definitely try out Actiondesk. Actiondesk is the easiest way for startup teams to make better decisions with their data. You can access your company key data without code or writing SQL, you'll just need basic spreadsheet skills.

Actiondesk looks like a spreadsheet and works like a spreadsheet. Users used to Google Sheets and Excel will be able to learn Actiondesk very fast.

While writing a script or using a Google Sheets add on can be a good one off solution, they're usually not durable. The overwhelming feedback we got from the market is that these solutions are not reliable and you always have to debug them.

If you're looking for a more solid solution, check out Actiondesk, you can try it for free.

SEE HOW ACTIONDESK WORKS

Keep reading

X
Please wait...
Oops! Something went wrong while submitting the form.