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 1kl3vc-0005Ix-5c for pgsql-general@arkaria.postgresql.org; Fri, 04 Dec 2020 05:46:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kl3vb-0000dE-55 for pgsql-general@arkaria.postgresql.org; Fri, 04 Dec 2020 05:46:47 +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 1kl3va-0000d6-T2 for pgsql-general@lists.postgresql.org; Fri, 04 Dec 2020 05:46:46 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kl3vY-0003vG-Mr for pgsql-general@postgresql.org; Fri, 04 Dec 2020 05:46:45 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 35F9310CB; Fri, 4 Dec 2020 00:46:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 04 Dec 2020 00:46:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=BimBkocgu1XjsGD4ExBBKxAzgGY uZehlfuKPJNsMyug=; b=uEWke9farq6i07OOLQrCcnO7N+kzCUMhB6psdFqqdd9 b/uLprS+Nwf8zcnMtEcVW1cfz6ml/SX6OT6AffHpBkk64Z/D52B76jJVxoTppmak 72Wrk/oD9b7KLDtXvuDekAUH6YxmEleYYhZ8S1sPWLv47NjC5pw/FAy7duNs7sWW dvhFk6BDmPc/OIQpg24HuhbKB3XicM3JUR99Jilh44uwGGbjtKEf3ilKuPawgu2i ZVoiRWVssBmTdUIv4kUXrHVj0mXSuwVJUGq7YGI3gWcLqW8X9OZHJRR5srbRDGSV Fu6ywVNkV/ESAjlvoNQlybudAhiSG+tu/NwZlpZ8FWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=BimBko cgu1XjsGD4ExBBKxAzgGYuZehlfuKPJNsMyug=; b=Y4nYhbQvGvbJKAT8a/8BDB q7aIQFrVMpjAJY6YdMTVtLADZIHdW0wn6peWYSi5dFywH2tuftmv5JYvO2lJUi3M y2OZDoBuvJEneQr80mBMVbxPvCiGribCtswK3oHp0UUnTAtVYtGgTs9gpAFlIfff qu3gIewSGd6tnYNB63+mTaMY6g3dNNxueAkc3UflD6hN76EP3YfU4gx6zmI5FDbC q9i/OGS4j98DN4stQl5SGW0ro+dY/6plMQ6DVSVebDmTJlR4PZiEhGlh6yV7l+RK Lx4/MDsW8pFyxQxMpnwjlM308oUrrjglEOGTOC57QVqNm8z8pmQIcAAtSu/+NYcw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeijedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 1F981108005B; Fri, 4 Dec 2020 00:46:40 -0500 (EST) Date: Fri, 4 Dec 2020 14:46:38 +0900 From: Michael Paquier To: Pavel Stehule Cc: Michael =?iso-8859-1?Q?Kr=FCger?= , Postgres General Subject: Re: Postgres C-API: How to get the Oid for a custom type defined in a schema outside of the current search path Message-ID: References: <32816FAC-CF61-45E0-B161-7DA662F3FEDF@kruegers.email> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cQDhdVVZ1eSynYl4" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cQDhdVVZ1eSynYl4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 03, 2020 at 01:45:05PM +0100, Pavel Stehule wrote: > When you write C extensions for Postgres, then PostgreSQL source code is > the best source of inspiration. One common source of inspiration for such cases is regproc.c. For a type, you can for example look at what to_regtype() uses for a conversion from a name string to an OID, aka parseTypeString(). -- Michael --cQDhdVVZ1eSynYl4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl/JzT4ACgkQnvQgOdby QH2Wlg//XrZKsN3qIn0eeU5j/2YXlXsRrNIIz3uLkLjhmWQI2AlE1z4j5uDwOym/ vpA2fGhjrEL4gAcHdGF1Zyeyoos9xQ9aqfU6Sg0gt+edNLeDzqUwOMOnaaBMKGjU BZ7u4UCKfPfgYETqUDPDTnNhde/a7FNbDtPHl8yGFqj6mFvyJLnT/RQZPsRbiVk+ AUnaDv1275yyRWZaCLBvge277cRITba7AysjEefOW+JZ1Pp0VXZmoRNrBvAeWHGW H4ZsGYND5W8xv11q+4qcs39DuWw2JDkcf/TOCHIiTuzhenuBvng6LTDVPy4uO0x4 onrQNE9zzqwyO27Vz9AxS0yZILNa530B2rHaDRn7T6STA6AgJuoDaV6+o2yQJTHP FH4rH7ctV9SqrMxt9pjKFvhnijSOSxgkxY6L8mezR6f4GQ76Ni3TCtHehIga6Ok7 KUtEqp99Sdw850bIQe/7wcdZ0RjxIXOYwpN619ARQebdvAXKurmyttjulobkwmaX USymnvgzeJsMk7prQcrPuNH+2RsINc0u84e2gOZJ4bauC0abBKUgbiY6XICJlUxB L6FTGZ3I4WvSpnv/9LHkyJNRt4zVY0b9BKPBoYdq9ASmlsTSVWBSzk3BrJ4EzwtV AUCABwWQFybnpumF3+Irwfp7FDdzcbPIYmlJLdYXE+4x/wxQ0W0= =swTi -----END PGP SIGNATURE----- --cQDhdVVZ1eSynYl4--