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 1iIvbP-0005rP-Jz for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 11 Oct 2019 14:09:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIvbO-0001LG-CO for pgsql-pkg-debian@arkaria.postgresql.org; Fri, 11 Oct 2019 14:09:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIvbN-0001Km-U9 for pgsql-pkg-debian@lists.postgresql.org; Fri, 11 Oct 2019 14:09:06 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iIvbL-0004a3-3L for pgsql-pkg-debian@lists.postgresql.org; Fri, 11 Oct 2019 14:09:04 +0000 Received: by mail-pg1-x542.google.com with SMTP id b8so5848990pgm.13 for ; Fri, 11 Oct 2019 07:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cleverelephant-ca.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+pgpD4FE4TgZK4Jo20UmQGHdnK3a0jPSmxrdEMzHWtI=; b=RmHMQWpnbHSCu1R4+FSaK7LtLtp87nrM7d4WF/bg/+slvRachjPlVoKa418u73kqxc yLNJSCEID1ElfxXAEowTCNiLDlNQLfXy9qEfcJ93Kpz4NDuoNLEZLda4xZZk3wJhKQnh I5wPhvhKdkslkCL/PWcme63+ZGLIpO0xU1/9RawNwlmNBRFj/4x03ElPnDU1jv7R2Erm Xkl2Q2egmnxO+IijfQRGx0U9wYFK4QnlaEUmo8aDWT8hMDW2gYZUkzHUGFySVd1ujKFL nbvkp5S4FDVjHwSjT4+tW/CRKW9P4/tEvniVy98kWquzlx58Dd1wBuBjmw+KjJ9xzM4G rmaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+pgpD4FE4TgZK4Jo20UmQGHdnK3a0jPSmxrdEMzHWtI=; b=kbu8ehAFWazf1EVPnMbBqM3ZPVE7+thMzVQtbiIbN7agL2Ix8DwUJbp+2NzEuY12ya Tcgtp/gDZyB1iYfdFwyJ+TQthPnkZsGWyJwmLHUNmdtydXLnTweF3da32rQdbYAqKAkM YlyZPh2dPOBL5qp9hmZ5prO9qddvo7I36Zwu3jMInnp0y4mES90VikZconEOU+dzR7lg CbUFWEkjJf8tZwpdjlHxwOjYfl0x8FFiLt1mUwxBH3SHaTv9wQxXYJHkdfTiwfnGdqp4 mmhOjons5Oe0nMG/N9CrvMFdWdPwiBq7/UfwGTasDB+Gs9d2fm2x+EvOpkBsziGeBW9W 9PyQ== X-Gm-Message-State: APjAAAXNPYBJMxpnW0d34+94IwLgTirzEk0kIRazJNKBfrAhFN8Xly1T mu0l8i/oA7566mmRBl0HTWaBpo5kIVIVQA== X-Google-Smtp-Source: APXvYqzUxw1cEXgDRRhTCGhMlEdmQ/hhjXFpDHQUP24up8/HGESVx61fdPEHM6TTGGG71etSeHzf0Q== X-Received: by 2002:aa7:9ed2:: with SMTP id r18mr16238229pfq.1.1570802940941; Fri, 11 Oct 2019 07:09:00 -0700 (PDT) Received: from [192.168.1.30] (S0106d88f767a887a.gv.shawcable.net. [24.69.166.111]) by smtp.gmail.com with ESMTPSA id b3sm7249462pjp.13.2019.10.11.07.08.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2019 07:08:58 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: PostgreSQL, C-Extension, calling other Functions From: Paul Ramsey In-Reply-To: <001801d5800b$b9398d90$2baca8b0$@zpmt.de> Date: Fri, 11 Oct 2019 07:08:57 -0700 Cc: pgsql-pkg-debian@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <78C0B59A-FDCE-4129-AD2F-98D967B34DC3@cleverelephant.ca> References: <001801d5800b$b9398d90$2baca8b0$@zpmt.de> To: Stefan Wolf X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk DirectFunctionCall() is what you=E2=80=99re looking for. Odd choice of list to ask? P > On Oct 11, 2019, at 1:13 AM, Stefan Wolf wrote: >=20 > I=C2=B4ve written some PostgreSQL C-Extensions (for the first time...) = and they > work as expected. >=20 > But now I want to call other functions from inside the C-Extensions = (but not > via SPI_execute), > for example "regexp_match()" or from other extensions like PostGIS > "ST_POINT" etc... >=20 > I think "fmgr" is the key - but I didn't find any examples. >=20 > Greetings from Berlin > -Stefan Wolf- >=20 >=20 >=20 >=20 >=20