4

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 Oct 10 '17 at 19:41
  • Can you send this question to CARTO Enterprise support email? Disclaimer: I am Solutions Engineer at CARTO. – ramiroaznar Oct 10 '17 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 Oct 11 '17 at 20:19
  • Can you point the source for that 250k rows limitation ? Thank you @ziggy – CGlog Oct 11 '17 at 20:21
  • I have spoken a while back to somebody working at Carto. I'd confirm it with them – ziggy Oct 11 '17 at 20:47
0
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/?
api_key=3102343c42da0f1ffe6014594acea8b1c4e7fd64"

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.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

0

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, privacy policy and cookie policy

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