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 1i5Ezh-0000Ot-FE for pgsql-interfaces@arkaria.postgresql.org; Tue, 03 Sep 2019 20:01:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5Ezg-0000mJ-1T for pgsql-interfaces@arkaria.postgresql.org; Tue, 03 Sep 2019 20:01:36 +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 1i5Ezf-0000jO-PW for pgsql-interfaces@lists.postgresql.org; Tue, 03 Sep 2019 20:01:35 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5Ezd-0001kf-Ux for pgsql-interfaces@lists.postgresql.org; Tue, 03 Sep 2019 20:01:35 +0000 Received: by mail-lj1-x242.google.com with SMTP id e17so6303050ljf.13 for ; Tue, 03 Sep 2019 13:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=C3YogvjSaVnzfWIRwY2XUPRIsrFJqYj/qejrnc1Ui8A=; b=qQWRXo3m0vQ0dA/IGbQ3oxeIIP9o743iRvY9PigGfHumPY+di0rv8N5G2G1xEH2bfg Srte9cpoSSTBeXH+PiiXjsmqgy4df3Z3Tjz8upcOvbwfurgvgCyvTqcoFaRENM5+x0DM 7nhKZzXEgMdd9kEnQp+Ju0qG+VDd9Bt62Miffmk7Y4+9rIt3TSkN8+EwMUHJbDO27KY8 r3lki+rJCokCCWpSjL5/sNrxNse6gzQDl9/bWZXdw7irDbNKLctV9oHrzNBXkrOEukNg LeK8Fumw6MKUhZC17usCk27HcEvq9ONckou4QqQRW0BgNKrRwieAQSROuru5zStnG8ZY AKFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=C3YogvjSaVnzfWIRwY2XUPRIsrFJqYj/qejrnc1Ui8A=; b=nNsTMfWDIOHZDZSMKCdaRABbsPBuZgq9mqOn4bNJBcUNemFo/7sJfCkT1ynqNjGdtp IkheLyYMBwQiLZOdklqc//e3DRg1R9CaDQi1uA/o2iXUidq1Hp0HCz4c7SQdNon0rFgu iF3M+8EZPI/HfprPzKi2uXFIbDbD/6U6W3WrCv7+A0B6gVeAlwgmvDyY9ruR/WC2yf/i iFIAWfo4bl2jRPknYCXQsTRcbtAf1GQ0+Q3DH8mDHxqbCmywdrjQQlw6IVyfe+KnwUCE T0QQcCMFyN/z9knt6WUmN3orBJqazQ+Mjgol7EVvfIRkmr4WWZo4Mx+bZ2iT5JOzi+rL 9iQw== X-Gm-Message-State: APjAAAVYJppAqzt0kuaxBeu5rGaR4Bz/ss9NbBxjQE9a+/rSqN/q93+4 /4qurvbyD/jkV2sLn9NRcHUr0zUOIgc= X-Google-Smtp-Source: APXvYqzLPhXDITRIpdj35Gsx7WBewfYEPA1rFW/zn4LjvcByYV0OpmX69+y0RElgypjmGIupMbB+Rw== X-Received: by 2002:a05:651c:1021:: with SMTP id w1mr6731671ljm.145.1567540893149; Tue, 03 Sep 2019 13:01:33 -0700 (PDT) Received: from localhost (customer-109-238-136-64.stosn.net. [109.238.136.64]) by smtp.gmail.com with ESMTPSA id r4sm488742lfc.91.2019.09.03.13.01.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 13:01:31 -0700 (PDT) User-agent: mu4e 1.0; emacs 26.2 From: Malcolm Matalka To: pgsql-interfaces@lists.postgresql.org Subject: Object IDs in Parse message Date: Tue, 03 Sep 2019 22:01:28 +0200 Message-ID: <86o9019mjr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --=-=-= Content-Type: text/plain Hello, I'm implementing my own pgsql client for fun and I'm trying to understand how to send a Parse message. The final parameter to Parse is a series of Int32s with the description: Specifies the object ID of the parameter data type. Placing a zero here is equivalent to leaving the type unspecified. But where do I find the list of object IDs? Doing some internet searches didn't bring up much. Poking around the code I came across the file: ./src/backend/catalog/pg_type_d.h And that has a series of OID's with integer values. Is this the mapping I'm looking for? If so, It's not clear how to express some things. For example there is a MONEYARRAYOID, but no MONEYOID. Would I use, for example, NUMERICOID for money? If so, why does MONEYARRAYOID exist rather than using NUMERICOID? Thanks, /Malcolm --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEQP2ClpgOfnguJZS++DiEc/oMrtcFAl1uxpgACgkQ+DiEc/oM rtcNXwgAzieu1Jdh91cYiJ9uPjWv+Lp9oGxPc0r42RmUk4ipOXY+aNIuIsr6xjEn wHOKql3MSeQk6dvuNNgCGeg7aF97N6hnp4isu8JOpfayEDlI/HRJqZUHbupMz6DU kLk0ZkpS/wIu2eM5OfqXMWwEU7YLJgCGa4XKgL3Z6S5pB1IJSvtmB/20VGs69tM8 8GBgkqvPqV0qa/cRyqeF0EwdfaVkX9by1j30qeGrQctiz6qUQ+wkrR/hnr0PpIDt DOvkmNJEKSZn7Be6lR/LQdIz75JHoU2+okyL7AubhPzRjH/ufYuTvFSGLM0G7Suk Hz5yDOIeI4Mw+00fcVwXpaw9GCeppg== =8Lqs -----END PGP SIGNATURE----- --=-=-=--