X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 19A9CD1E15C for ; Tue, 23 Mar 2004 05:05:37 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 22881-09 for ; Tue, 23 Mar 2004 01:05:35 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 247B2D1E150 for ; Tue, 23 Mar 2004 01:05:35 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2N55WeQ015658; Tue, 23 Mar 2004 00:05:32 -0500 (EST) To: "Preston A. Elder" Cc: pgsql-interfaces@postgresql.org Subject: Re: Portable interfaces ... In-reply-to: <1080012121.10179.56.camel@temple.srealm.net.au> References: <1080012121.10179.56.camel@temple.srealm.net.au> Comments: In-reply-to "Preston A. Elder" message dated "Mon, 22 Mar 2004 22:22:02 -0500" Date: Tue, 23 Mar 2004 00:05:32 -0500 Message-ID: <15657.1080018332@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/24 X-Sequence-Number: 4803 "Preston A. Elder" writes: > I wanted to know exactly which header files I can use portably. pg_type.h is part of the "server-side" include tree. When installing from original sources, it is installed only if you type "make install-all-headers". When dealing with a Linux distribution's packaging, it's completely at the whim of the packager whether it will be installed at all, and if so where. Sorry the news isn't better :-(. My advice would actually be to copy the #define's you need for type OIDs into a header in your own sources. We do not make a practice of changing OIDs for built-in objects, so I think your risk in that direction is really lower than your risk from trying to #include pg_type.h on various random distributions. I don't have a comparably simple answer for your character encoding issue, but again I fear that relying on PG's internal facilities would be a bad idea for you. regards, tom lane