Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
177 views

I have a CSV file with a silly filename (for example): 'test_1111 _2_ABC Hr. Schmidt_2024.csv' postgres@minisforum:~/16/import$ ll insgesamt 1212 drwxrwxr-x 3 postgres postgres 4096 Okt 14 19:16 ./...
Peter Hoffmann's user avatar
1 vote
1 answer
196 views

insert into my_foreign_table select * from my_local_table My columns are two integers and two floats. The number of rows was >100M. I left it running for a few days, but killed it because it took ...
mj_'s user avatar
  • 6,469
0 votes
0 answers
105 views

Currently I'm using Aurora Serverless v1 which don't supports FDW(foreign data wrappers). I need to setup FDW for some requirement. I just want some ways to tackle this situation. 1.First approach may ...
Alok Kumar's user avatar
1 vote
0 answers
371 views

I had this foreign data wrapper server set up between my 2 databases stored locally and it worked perfectly for the longest time until today and I can't seem to figure out why. I did recently upgrade ...
Lorenzo Ang's user avatar
  • 1,338
1 vote
1 answer
2k views

I have two databases in different servers and data streaming from one server (X database) to another server (Y database) with the help of logical replication. My question is the following: is there ...
Alisahib Qadimov's user avatar
0 votes
1 answer
345 views

I have two Postgres Databases DB1 and DB2. I have a table Tab1 on DB1 that holds some records. There is another table Tab2 on the same DB (DB1) that is managed by a trigger on Tab1 ( basically a count ...
Anuj Sharma's user avatar
0 votes
1 answer
1k views

I have 2 postgresql instances on different computers(X and Y) on the same network. Y server has PgAdmin installed on and connected to both instances. On the Y instance, I created FDW connection for a ...
James De Souza's user avatar
0 votes
0 answers
72 views

taking long time to create table with foreign tables query select distinct a."scid", a."tt", a."p" into tableA from db1_foreigntable1 a join db1_foreigntable2 b on a.&...
user21741847's user avatar
0 votes
0 answers
428 views

My select query taking long time in postgres foreign tables. It is taking 15sec in MSSQL server. PostgreSQL 13.7 on x86_64-pc-linux-gnu, compiled by Debian clang version 12.0.1, 64-bit I am querying ...
user21741847's user avatar
1 vote
1 answer
2k views

I'm having trouble using SSL to connect to a foreign server using postgres_fdw. I had this working on a different server, but seemingly the same process is not working on my new machine. I mostly ...
Reid Swanson's user avatar
-1 votes
2 answers
1k views

How can i use variables in a query of a foreign table? I could ALTER the option (query) of the foreign tabel and add the variable into the where clause but i am concerned that this locks the foreign ...
BC5k4KwjAnebdrfD's user avatar
1 vote
0 answers
448 views

I am trying to do update my database tables via upserts from a postgres-to-postgres foreign data wrapper. I have two code snippets below. The first is using the constraint on the primary key and the ...
one_tick_pony's user avatar
3 votes
1 answer
8k views

While trying to execute PostgreSQL extension in PostgreSQL 13 CREATE EXTENSION postgres_fdw; I am getting an error CREATE EXTENSION postgres_fdw "Could not open extension control file "/...
Saswat Swarup's user avatar
0 votes
1 answer
504 views

The following architecture: Server A has access to Server B, Server B has access to Server C, but Server A has no direct access to Server C. I can create a foreign server on Server B like this: CREATE ...
Lokomotywa's user avatar
  • 2,855
1 vote
1 answer
4k views

Currently IMPORT FOREIGN SCHEMA does not seem to support IF NOT EXISTS so how to solve this case? If I have a script that runs on every reboot for example I would get ERROR: relation "xxx" ...
nforced's user avatar
  • 371
0 votes
1 answer
864 views

I just set up a new foreign table and it works as intended if I just select the "ID" (integer) field. When I add the "Description"(text) field and try to select the table, it fails ...
Norbert Bartko's user avatar
1 vote
1 answer
1k views

On a Postgres server A, I am calling a query, that employs foreign table(s) from server B (FROM mav4_gmd_data): EXPLAIN ANALYZE VERBOSE SELECT d....
Orff's user avatar
  • 11
0 votes
0 answers
264 views

We are using PostgreSQL version 13 and our database has a high volume of read request about 95% and 5% write request. We have a read only replica in slave mode as well. So to offload my primary server ...
hassan_i's user avatar
  • 331
0 votes
1 answer
471 views

Using PostgreSQL 9.6.9 It appears that constraints are not available when using the Postgres foreign data wrapper https://github.com/postgres/postgres/blob/e1ae40f381d0582981b1e63856bd4b060cfe2d53/src/...
Harsha Laxman's user avatar
1 vote
1 answer
1k views

in short: we are facing a problem that full table scan is performed on remote Oracle DB instead of using the index. Setup: Postgres 12.3 in an enriched docker container with oracle base client, ...
LWn's user avatar
  • 11
2 votes
1 answer
1k views

I've been trying to create a foreign table in my PSQL database. The point here is to concatenate the same steps table from 2 different databases. I want to use INHERITS to copy the schema. I have a ...
RobinFrcd's user avatar
  • 5,704
0 votes
0 answers
390 views

I'm trying to set a connection between a PostgreSql 12 64bit on a Windows 10 (64 bit) with a MS Access 2013 (64 bit) on a windows 8.1 64bit using some of the fdw's. At this regard I: - Set a System ...
Erick's user avatar
  • 314
0 votes
1 answer
1k views

One of my legacy PHP applications is using a PostgreSQL database with Foreign Data Wrapper. This database has a local table and two foreign servers set up (one pointing to database A, another pointing ...
gogofan's user avatar
  • 583
10 votes
1 answer
3k views

Suppose I want to query a big table with a few WHERE filters. I am using Postgres 11 and a foreign table; foreign data wrapper (FDW) is clickhouse_fdw. But I am also interested in a general solution. ...
ctlaltdefeat's user avatar
3 votes
1 answer
10k views

Using PostgreSQL 10.10, from superuser postgres: CREATE EXTENSION postgres_fdw; GRANT USAGE ON FOREIGN DATA WRAPPER postgres_fdw TO my_user; Then when doing the following from my_user: CREATE SERVER ...
Jivan's user avatar
  • 23.4k