Re: Could not connect to mongo db using foreign wrapper

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Could not connect to mongo db using foreign wrapper
Date: 2018-05-23 10:15:22
Message-ID: 1527070522481-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I don't know which repository you have taken this driver from,
but code from https://github.com/citusdata/mongo_fdw/blob/master/mongo_fdw.c
gives

connectStatus = mongo_connect(mongoConnection, addressName, portNumber);
if (connectStatus != MONGO_OK)
{
errorCode = (int32) mongoConnection->err;

mongo_destroy(mongoConnection);
mongo_dispose(mongoConnection);

ereport(ERROR, (errmsg("could not connect to %s:%d", addressName,
portNumber),
errhint("Mongo driver connection error: %d", errorCode)));
}

You have to find what errorcode = 3 means with your mongo
installation/version.
An other way, would be to add the full error message in this error report
...

The best would probably to ask this question to people you wrote this
extension ;o)

Regards
PAscal

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Lazaro Garcia 2018-05-23 13:50:22 RE: Possible bug on code autocomplete pgadmin V 3.0
Previous Message Sohel Tamboli 2018-05-23 07:40:56 Could not connect to mongo db using foreign wrapper