I am a new Carto Builder (enterprise) User and I am trying to connect a Postgres9.6.4 / PostgiS 2.3.1. table to my datasets.

Here is my script that should do the trick but I receive an extra long answer with html embeded code in it answering ERROR 500.

curl import table line API Error 500 Answer

I tried to query the ?import/api to see if there was anything pending or processing but nothing.

Is PostgreSQL 9.6 supported ? PostGIS 2.3.1 ?

The table is 500Mo large, points, WGS 84.

  • 1
    how many rows does it have? because I have head that it may have a restriction on the number of rows in a table. maybe above 250,000 rows
    – ziggy
    Commented Oct 10, 2017 at 19:41
  • Can you send this question to CARTO Enterprise support email? Disclaimer: I am Solutions Engineer at CARTO. Commented Oct 10, 2017 at 20:08
  • My table have 2millions rows. Thank you @ramiroaznar I already opened a ticket there. Seems 9.6 is not supported yet. I will have to try downgrade the postgres instance and then try again.
    – CGlog
    Commented Oct 11, 2017 at 20:19
  • Can you point the source for that 250k rows limitation ? Thank you @ziggy
    – CGlog
    Commented Oct 11, 2017 at 20:21
  • I have spoken a while back to somebody working at Carto. I'd confirm it with them
    – ziggy
    Commented Oct 11, 2017 at 20:47

2 Answers 2

curl -v -H "Content-Type: application/json" -d '{ 
   "connector": {
    "provider": "postgres",
   "connection": {
      "server": "SERVERNAME",
      "database": "DB_NAME", 
      "username": "USERNAME", 
      "password": "PASSWORD"
  "table" : "MY_TABLE"

  "interval": 3600}' "https://documentation.carto.com/api/v1/imports/?

I installed git bash, wrote the entire command as above in a text editor and pasted it at once into git bash. Note of advice, it's a lot more useful in the long run to modify the command to include an interval for the data to sync with your Postgres DB.


My table had too many rows (over a million). Carto does not support such large table. You need to split your table and merge in Carto SQL.

Thank you all for the support and answers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.