Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoiKR-0006Lc-CM for pgsql-interfaces@arkaria.postgresql.org; Thu, 05 Dec 2013 23:27:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoiKQ-0001ge-QR for pgsql-interfaces@arkaria.postgresql.org; Thu, 05 Dec 2013 23:27:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoiKP-0001fO-Ae for pgsql-interfaces@postgresql.org; Thu, 05 Dec 2013 23:27:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoiKM-00029W-LZ for pgsql-interfaces@postgresql.org; Thu, 05 Dec 2013 23:27:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rB5NRO8B022402; Thu, 5 Dec 2013 18:27:24 -0500 From: Tom Lane To: "Hoon H." cc: pgsql-interfaces@postgresql.org Subject: Re: Is it safe to use fundamental type OIDs defined in server/catalog/pg_type.h from client? In-reply-to: <69AD5777-82E3-4442-8EB6-DC7395C3D4BD@gmail.com> References: <69AD5777-82E3-4442-8EB6-DC7395C3D4BD@gmail.com> Comments: In-reply-to "Hoon H." message dated "Fri, 06 Dec 2013 05:43:13 +0900" Date: Thu, 05 Dec 2013 18:27:24 -0500 Message-ID: <22401.1386286044@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-interfaces Precedence: bulk Sender: pgsql-interfaces-owner@postgresql.org "Hoon H." writes: > According to some mailing list entries, > http://www.postgresql.org/message-id/20080708000535.GA10491@cuci.nl > http://www.postgresql.org/message-id/AANLkTimiNjQa7ws1tyR_W6RQPec6RlxQtWfACNMnZ_1P@mail.gmail.com > It seems safe to use macros defined in `server/catalog/pg_type.h`, but I still doubt because I couldn't find any official policy on these values. We never have changed the OIDs of those basic types, and I doubt we would. We're well aware that some client code knows their numbers. regards, tom lane -- Sent via pgsql-interfaces mailing list (pgsql-interfaces@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-interfaces