Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ixHrL-0003Pn-NA for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2020 22:00:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ixHqK-0005VN-Vf for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2020 21:59:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ixHqK-0005VG-M1 for pgsql-general@lists.postgresql.org; Thu, 30 Jan 2020 21:59:20 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ixHqH-0008Kk-2g for pgsql-general@postgresql.org; Thu, 30 Jan 2020 21:59:19 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 3C1821A9B7F8D for ; Thu, 30 Jan 2020 14:59:15 -0700 (MST) Date: Thu, 30 Jan 2020 14:59:15 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1580421555192-0.post@n3.nabble.com> Subject: Options for Postgres FDW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I=C2=B4m trying to insert/update some tables using FDW. I=C2=B4m having pro= blems when I want to use default values and triggers.=20 For columns with default values, if I drop that column on foreign table definition is fine for inserts but I cannot use that column for updates/selects because it doesn=C2=B4t exist on foreign table definition. For triggers, there is a way to define search_path for that server/connection ? Because suppose I=C2=B4ve used "import foreign schema CustomerSchema", when I do some insert/update on any table of this schema, if that table calls a trigger which needs another table, that trigger doesn=C2=B4t sees that table because it=C2=B4s using pg_catalog schema. The= only way to solve this is defining search_path when starting all triggers ? -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml