Skip to main content

Export from PostgreSQL to Google Sheets

You can use Awesome Table Connectors to export from PostgreSQL to Google Sheets. Exporting to Google Sheets via Awesome Table Connectors allows you to access raw data, schedule refresh to get regular updates, and configure your output sheet's layout, among other features.

This article demonstrates how to use Awesome Table Connectors to get specific columns from a PostgreSQL table and export it to Google Sheets. You can use your own database and follow along.

You have opened the Awesome Table PostgreSQL connector.
  1. Open the Select data drop-down and click Run SQL query.

    The Query field is displayed.

  2. Enter a query. In this article, we are exporting a list of table names, column names, and data types from an information schema.

    The following query is entered into the Query field: SELECT table_name, column_name, data_type  FROM information_schema.columns

  3. (Optional) In the Output options, configure how your data will be inserted into your spreadsheet.

  4. (Optional) Use the Preview & Select columns feature to choose the columns you need, edit their names, and configure a sort order.

    1. Click Preview & Select columns.
      A new window opens.
    2. Make the changes you want.
    3. Click Save changes.
  5. Click Run to start your request.


    If you are running a request for the first time, the Permission needed pop-up window opens.

    1. Click Sign in with Google.
    2. Select the Google account you want to use with Awesome Table.
    3. Click Allow to grant Awesome Table the required permissions.

    Awesome Table Connectors informs you if you successfully exported to Google Sheets.

You have successfully exported data from a PostgreSQL database to Google Sheets. Successful requests are automatically saved and displayed in the Home screen.

What's next
Schedule a refresh to get regular updates.