Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6bS4-0004H3-8j for pgsql-general@arkaria.postgresql.org; Thu, 22 Jul 2021 16:21:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m6bS3-00016n-7y for pgsql-general@arkaria.postgresql.org; Thu, 22 Jul 2021 16:21:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6bS2-00015W-6f for pgsql-general@lists.postgresql.org; Thu, 22 Jul 2021 16:21:34 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6bRz-0000qh-Ku for pgsql-general@postgresql.org; Thu, 22 Jul 2021 16:21:33 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id D08283200916; Thu, 22 Jul 2021 12:21:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 22 Jul 2021 12:21:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=j dA4dOpmEDM5hXfdFZjwxttA3CqU9C8xBgSV22c8OC8=; b=iMFLMPqEVDCmQiK1G l+gXlQusczj6XFZAqiOk2GL/CwLpPX9esuS+kVyJYA8IvP+fsoWfwenOrSbE46Hb hWnwLK5G5Nmwzae5KMsZ6ZONUXyG/bGUqpoHQjGtU1SHmVBETlb4e2GIef4TpMwT zNyk2dXS2QLKMpfxo1uAgeGR0Usmd+OK6sVK05Rb/+4zuFfvyrilAfQTlA2Zx1Lu lAqq5ZpyilTjtZEIg3VdO7XmxdM/48XtmkfwGaW14jJTL1wrsCisEmVSQhMqgFJZ ORTEP6IT5vXNRDsBhjYVFHVSHP/2Ml46WwUfWAFU98FUxgmN5/kdrkjbzpi/CxxS 8fdNw== 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=fm3; bh=jdA4dOpmEDM5hXfdFZjwxttA3CqU9C8xBgSV22c8O C8=; b=ctYjKnj+274EgJREYK8Qynyp0g4tpCRbJWkDU/ET3gY7ljD8WNRNKKK0H Ej8N1txI0oHjS2BDLyTAwChksXMJs4OCRYeITgN5Mn+efnSKSnIH2W8xpnJqhULh 2pB90kSe+Ji9Lk+jckuF9x3qDwVV4qx8v4AWNc++aAZlt705H2kgztJgwwBUa6eN d//xF38C4+Udp9fJZ/tC60JwFBseUHwtDCyGmYTFgHmSYaOkeEIuOCxhuotCqgvI zT7H4DTqTomPBkIJM2JDBmVCPu4mjmpk3QHRD8MMAy6L8cqkQhbJqCOEPLbVZnRu oh50+jCeB8+sOsnMF4TJQLb0RO7xw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeeigdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepuddufeejteevffehgfduhedthfdvteekieeuheefveev udetkeelueehgeduhefhnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgr nhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 22 Jul 2021 12:21:28 -0400 (EDT) Subject: Re: version 0 calling convention To: Mark Lybarger , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Thu, 22 Jul 2021 09:21:27 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: 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: Archived-At: Precedence: bulk On 7/22/21 9:18 AM, Mark Lybarger wrote: > i have some sql functions written in c code using version 0 calling > convention.  it's working fine on postgresql 9.6, but i'm migrating to > v13.  has this calling convention been removed? https://www.postgresql.org/docs/13/xfunc-c.html#id-1.8.3.13.7 "Currently only one calling convention is used for C functions (“version 1”). Support for that calling convention is indicated by writing a PG_FUNCTION_INFO_V1() macro call for the function, as illustrated below." > > my function creation give an error, > > SQL Error [42883]: ERROR: could not find function information for > function "test_func" >   Hint: SQL-callable functions need an accompanying > PG_FUNCTION_INFO_V1(funcname). -- Adrian Klaver adrian.klaver@aklaver.com