pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedugly name clash
2+ messages / 1 participants
[nested] [flat]
* ugly name clash
@ 2000-01-26 22:01 Sarah Officer <officers@aries.tucson.saic.com>
2000-01-27 16:02 ` Re: [ADMIN] ugly name clash Sarah Officer <officers@aries.tucson.saic.com>
0 siblings, 1 reply; 2+ messages in thread
From: Sarah Officer @ 2000-01-26 22:01 UTC (permalink / raw)
To: pgsql-admin
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 <pg/sqlca.h>
instead of just <sqlca.h>, 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 <oracle/sqlca.h> or <pg/sqlca.h> to distinguish
between them. How about it?
Sarah Officer
officers@aries.tucson.saic.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [ADMIN] ugly name clash
2000-01-26 22:01 ugly name clash Sarah Officer <officers@aries.tucson.saic.com>
@ 2000-01-27 16:02 ` Sarah Officer <officers@aries.tucson.saic.com>
0 siblings, 0 replies; 2+ messages in thread
From: Sarah Officer @ 2000-01-27 16:02 UTC (permalink / raw)
To: Sarah Officer <SARAH.M.OFFICER@saic.com>; pgsql-general@postgresql.org
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 <pg/sqlca.h>
> instead of just <sqlca.h>, 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 <oracle/sqlca.h> or <pg/sqlca.h> to distinguish
> between them. How about it?
>
> Sarah Officer
> officers@aries.tucson.saic.com
>
> ************
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-01-27 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-26 22:01 ugly name clash Sarah Officer <officers@aries.tucson.saic.com>
2000-01-27 16:02 ` Sarah Officer <officers@aries.tucson.saic.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox