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 1h8YOO-0001OV-Ee for pgsql-general@arkaria.postgresql.org; Mon, 25 Mar 2019 22:48:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h8YOM-000206-Qt for pgsql-general@arkaria.postgresql.org; Mon, 25 Mar 2019 22:48:30 +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 1h8YOM-0001zz-IV for pgsql-general@lists.postgresql.org; Mon, 25 Mar 2019 22:48:30 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8YOJ-0003cP-SA for pgsql-general@lists.postgresql.org; Mon, 25 Mar 2019 22:48:30 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9B049275B7; Mon, 25 Mar 2019 18:48:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 25 Mar 2019 18:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:from:to:references:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=Q w5KixiRjxLx8X+tF+fT/vl81xp34tTEGIBpWIJZFMo=; b=wcCVAXEwq95LmDtpW Ys7o8vKz094gCXjKtHLDHqwlysbVXXf+zJ0fx64KGjDdGu9aVs4Nsfd6LO2vH7C1 x/iMZXJXWzSWkG8RfhYAbg13Lj+eIzxCZ18Byd33m5Htb+7YvRmigie5ciGYofzH L3EADOp7K7PC2Pr/7xv1gkpR5B9XY5Af64LHczTsCzhn4TZ7ZYB3eoSSUb3x/Q3a wLcfATGi4nLHjLuub9kwfG0E2lYcgBTV/pZ1W12BLKnOHDW20t+2TC54xnvr1ztt lFFGF1J3jwQgIWIG1Gbrn+R3NTMPVnaKkT1a4dOiLNO7wtOSVFlf6D8ZWgiyP13j cXO0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=Qw5KixiRjxLx8X+tF+fT/vl81xp34tTEGIBpWIJZF Mo=; b=NM3iJZ3UIappfYNrjmlOoB2Jgig3qp8erFmf1sfwjpG4OQOu0Ln0EACCR c5NM3FkL598m0r6FDwB3h2c/tApkyoo/jCki4gjJU+5mOUNzBTNiaqtIyvCtzpc1 E9TRjqmE9b9m48f9fCU2VM+YMp/lcaz/NrXc/ZBO7WnG/xGU+pb43Ykkkubpdmxe GVpqIPWzSofWK5SRqX3gfsSe9+k+8dPB4YK7dxAezr+wLTVFvnLuMWjM5UWlKv7i 6ViGiuZK5TkSOsW84Pgb3f4dcGtaQeLi76uD2E7XPJ+B0JFQTCdgT/UoZ2Vcrfeh uLVzihcdzsOR7F1CAAEfGYrVvu3Cg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrjeelgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuhffvfhfkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucfkphepjeefrddvfeel rdduudejrddvfeeknecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrg hvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from ranger.suse (c-73-239-117-238.hsd1.wa.comcast.net [73.239.117.238]) by mail.messagingengine.com (Postfix) with ESMTPA id C31EC10310; Mon, 25 Mar 2019 18:48:25 -0400 (EDT) Subject: Re: Error: "remote query result rowtype does not match the specified FROM clause rowtype," on remote function call From: Adrian Klaver To: Antonio Gomez , "pgsql-general@lists.postgresql.org" References: <1a10f0e7-a098-65b7-c08a-440bfb871166@aklaver.com> <06c9a315-caed-ef45-9ea9-10f5b311bcbf@aklaver.com> Message-ID: Date: Mon, 25 Mar 2019 15:48:24 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <06c9a315-caed-ef45-9ea9-10f5b311bcbf@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/25/19 3:26 PM, Adrian Klaver wrote: > On 3/25/19 3:20 PM, Antonio Gomez wrote: > select * from public._test1(); > ERROR:  a column definition list is required for functions returning > "record" > LINE 1: select * from public._test1(); > > Have you looked at postresql_fdw?: Sorry was not thinking. postgresql_fdw works on tables/views, it would not help in your situation. > > https://www.postgresql.org/docs/11/postgres-fdw.html > >> >> Thanks for your response! >> -- Adrian Klaver adrian.klaver@aklaver.com