1

Are there limits to the PostgreSQL Foreign Data Wrapper extension? i.e. is there some maximum size of source table (or schema/database) that can be set up as a Foreign Table via FDW? We are using Postgres 10.6

We've occasionally run into situations where it seems to fail with tables that cross some size threshold (~8GB) but I'm unsure if this is something we can tweak, or perhaps a limitation on the source db end. (In this example the source table is in Redshift.)

The error message that comes back is: ERROR: exceeded the maximum size allowed for the total set of cursor data: 8000MB.

EDIT: Discovered the source of the problem - the size of this particular Redshift instance has this cursor size limit. They are listed here: https://docs.aws.amazon.com/redshift/latest/dg/declare.html#declare-constraints

We ended up filtering the results to make the FDW more workable.

rocksteady
  • 1,697
  • 14
  • 18

0 Answers0