Received: from portal.west.saic.com (portal.west.saic.com [198.151.12.15]) by hub.org (8.9.3/8.9.3) with SMTP id LAA57064 for ; Thu, 27 Jan 2000 11:02:26 -0500 (EST) (envelope-from officers@aries.tucson.saic.com) Received: from gatespass.tucson.saic.com by portal.west.saic.com via smtpd (for postgresql.org [216.126.84.28]) with SMTP; 27 Jan 2000 16:02:25 UT Received: (from adm@localhost) by gatespass.tucson.saic.com (8.8.2/8.8.2) id JAA01010; Thu, 27 Jan 2000 09:02:21 -0700 (MST) X-Authentication-Warning: gatespass.tucson.saic.com: adm set sender to using -f Received: from wasp.tucson.saic.com(139.121.3.171) by gatespass.tucson.saic.com via smap (V2.0) id xma001006; Thu, 27 Jan 00 09:02:03 -0700 Received: from aries.tucson.saic.com (localhost [127.0.0.1]) by wasp.tucson.saic.com (980427.SGI.8.8.8/950213.SGI.AUTOCF) via ESMTP id JAA85776; Thu, 27 Jan 2000 09:02:02 -0700 (MST) Sender: officers@aries.tucson.saic.com Message-ID: <38906BFA.22CFAB39@aries.tucson.saic.com> Date: Thu, 27 Jan 2000 09:02:02 -0700 From: Sarah Officer X-Mailer: Mozilla 4.07C-SGI [en] (X11; I; IRIX 6.5 IP32) MIME-Version: 1.0 To: Sarah Officer , pgsql-general@postgresql.org Subject: Re: [ADMIN] ugly name clash References: <388F6ED1.AABAC99A@aries.tucson.saic.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit When I examine the Oracle and Postgres sqlca.h files, I notice that they define the same structure. Both structures have the same element names, though Oracle has a few additional names that my program didn't access. With one exception, the elements are the same sizes. The major difference, which caused my program to fail to link, is that Oracle instantiates the object and Postgres does not. I have solved my problem, but I'm curious about the similarity between the two files. Is "sqlca" some standard SQL object that every SQL compatible relational database uses? How did Postgres & Oracle manage to come up with identical member names? Was it designed for compatibility between the two systems? Sarah officers@aries.tucson.saic.com I wrote: > > I am porting a system from Oracle to Postgres. At this time, both > databases are installed. I will probably arrange the software so > that I can use an environment variable to specify which database > should be used. I have had problems with an include file name clash > between postgres & oracle: sqlca.h. Both include files define a > struct called sqlca, an unusual coincidence. > > Is there some way to avoid the name clash without having to put > postgres in a special installation location that isn't in my path > when I compile with oracle? Perhaps include files could all go into > a pg subdirectory so that the user could include > instead of just , and that would differentiate? Systems > that use an include subdirectory don't seem to have as many name > clash problems. > > When I want to link to postgres, I can easily turn off the oracle > copy because it IS installed in a nonstandard directory (I had no > choice--this is not a benefit). But I would prefer to put all in > one area and use or to distinguish > between them. How about it? > > Sarah Officer > officers@aries.tucson.saic.com > > ************