Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

Postgres SQL return

(0) ShareShare
ReportReport
Posted on by 6
Hello Everyone,
 
I wanted to ask if there is a limitation on the POSTGRES SQL Connector, I have a flow that should be getting around 2000-3000 results via the Get ROWS but i am only getting 500-515 items in return. Is there a work around on how to overcome this limit?
 
I have tried to enable pagination but still I am getting 500 records in return.
 
Thanks,
 
Categories:
  • stampcoin Profile Picture
    2,002 on at
    Postgres SQL return
    Just wondering if your ID is the primary key ?
    As default, it return 512 records, enable pagination, it will give your ceiling(threshold/512)*512.
    it is called minimumItemCount(threshold). see below screen shot .
    My environment:
    • PostgreSQL 17. 
    • Npgsql-4.0.17.
    • Latest gateway.
    • Combination key.
     
    see below for Get rows. I used 515, it returns 1024, I didn't specify Order By.
    {
      "type": "OpenApiConnection",
      "inputs": {
        "parameters": {
          "table": "[public].[order_lines]"
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_postgresql",
          "connection": "shared_postgresql",
          "operationId": "GetItems"
        }
      },
      "runAfter": {
        "Get_tables": [
          "Succeeded"
        ]
      },
      "runtimeConfiguration": {
        "paginationPolicy": {
          "minimumItemCount": 515
        }
      }
    }
     
  • Yahooosilver Profile Picture
    6 on at
    Postgres SQL return
     
    I have put in 1000 for pagination.
  • stampcoin Profile Picture
    2,002 on at
    Postgres SQL return
    What is the value you specified for Pagination threshold?
     
  • Yahooosilver Profile Picture
    6 on at
    Postgres SQL return
    Hi Stampcoin,
     
     
     
     
    I have added order by ID asc but still returns 513 items.
  • stampcoin Profile Picture
    2,002 on at
    Postgres SQL return
    Please try to specify value for Order by, choose one of the index column, for example ID.
  • Yahooosilver Profile Picture
    6 on at
    Postgres SQL return
    hello @stampcoin
     
    I didnt use any filter. Should i use any filter to bypass the 500 limit?
     
  • stampcoin Profile Picture
    2,002 on at
    Postgres SQL return
    Did you use order by (on a index column )? what other options did you use ?
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Automate - General Discussion

#1
stampcoin Profile Picture

stampcoin 33

#2
SriniK Profile Picture

SriniK 26 Super User 2025 Season 1

#3
Pstork1 Profile Picture

Pstork1 22 Most Valuable Professional

Overall leaderboard