public inbox for [email protected]
help / color / mirror / Atom feedFrom: Muhammad Salahuddin Manzoor <[email protected]>
To: Russell Mercer <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Unable to connect to any data source for foreign server
Date: Wed, 29 May 2024 15:15:11 +0500
Message-ID: <CAKD7CD=14QPRpTCtFg2kz3Ly_Y-gGh5PyMsUH_Ph_P4tj-gFUw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
Greetings,
While configuring ORG_FWD.
I hope you are setting path like server name and absolute path to file on
your network share and network share has appropriate permissions.
'\\remote_server\path\to\file.xlsx' on network share
Create user mapping if required.
check your config through
ogr_fdw_info -s "\\\\remote_server\\path\\to\\file.xlsx" -l
To diagnose the issue you can check permissions, network accessability,
path format should include server name and absolute file path and any
compatability issues.
Regards,
Salahuddin.
On Wed, 29 May 2024, 14:42 Russell Mercer, <[email protected]> wrote:
> Hi,
>
> I'm running into a problem connecting to a foreign server with my
> Postgres database. I am using the OGR_FDW trying to connect to an Excel
> "XLSX". I had this database on another server, and the foreign server
> was set up and working properly there. I am trying to change the path
> to the file which it is referencing, and I am now receiving an error.
> In addition, I tried to just create a new foreign server to that same
> "XLSX" file and it also gave the error of "Failed to connect to data
> source".
>
> I used the OGR_FDW_INfo tool to make sure I had the foreign server
> reference structured correctly, but it matches what I had before, and
> didn't make a difference.
>
> I'm a bit lost as to where to look for possible solutions. One idea I
> have is that perhaps it is a permissions issue with accessing other
> files on the server where Postgres is installed, with the "postgres" user.
>
> Some basic info:
>
> Server: Windows Server 2022
> PostgreSQL 16.2 - Installed using Stack Builder
>
> Any information or ideas as to a solution, would be very much appreciated.
>
> Thanks,
> Russell
>
>
>
>
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Unable to connect to any data source for foreign server
In-Reply-To: <CAKD7CD=14QPRpTCtFg2kz3Ly_Y-gGh5PyMsUH_Ph_P4tj-gFUw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox