pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedMacintosh OS 9.1 front end C interface
4+ messages / 2 participants
[nested] [flat]
* Macintosh OS 9.1 front end C interface
@ 2001-04-04 17:41 liam <allenwc@home.com>
0 siblings, 1 reply; 4+ messages in thread
From: liam @ 2001-04-04 17:41 UTC (permalink / raw)
To: pgsql-interfaces
Okay, I've done a bunch of munging and I've gotten libpq-fe.c to at
least connect from Mac OS9.1 to the postgresql server.
That means it should be possible to port the entire C front-end to the Mac.
Anyone done this already so I can go back to sleep?
If not, what's my best approach?
--
Later . . . 'liam
allenwc@home.com
William C Allen, BLS, EET
"It may be that your sole purpose in life is to serve as a warning to others"
At least I /have/ a purpose!
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Macintosh OS 9.1 front end C interface
@ 2001-04-04 18:20 Tom Lane <tgl@sss.pgh.pa.us>
parent: liam <allenwc@home.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2001-04-04 18:20 UTC (permalink / raw)
To: liam <allenwc@home.com>; +Cc: pgsql-interfaces
liam <allenwc@home.com> writes:
> Okay, I've done a bunch of munging and I've gotten libpq-fe.c to at
> least connect from Mac OS9.1 to the postgresql server.
Cool.
> Anyone done this already so I can go back to sleep?
Not that I know of.
> If not, what's my best approach?
How extensive are the patches? It's too late for 7.1 but we might be
interested in adopting them for 7.2 ...
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Macintosh OS 9.1 front end C interface
@ 2001-04-04 18:31 liam <allenwc@home.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: liam @ 2001-04-04 18:31 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-interfaces
At 2:20 PM -0400 4/4/01, Tom Lane wrote:
>liam <allenwc@home.com> writes:
>> Okay, I've done a bunch of munging and I've gotten libpq-fe.c to at
>> least connect from Mac OS9.1 to the postgresql server.
>
>Cool.
>
>> Anyone done this already so I can go back to sleep?
>
>Not that I know of.
>
>> If not, what's my best approach?
>
>How extensive are the patches? It's too late for 7.1 but we might be
>interested in adopting them for 7.2 ...
I haven't patched the entire front end, only the PQconnectdb function
works at the moment.
Most of the changes involve replacing the standard Unix headers with
their Mac counter parts. Some functions have to be written from
scratch or ported from Unix, like strdup for example.
The biggest source of pain is that Mac just doesn't have all the
libraries that Unix does. Sigh.
It is going to be a BIG job, which is why I was hoping someone else
had done it already.
Oh well, I guess I'll plod along. I'll build it as a CodeWarrior
project for Mac with a target of "library" if that's alright?
Any words of wisdom on best ways to do this?
--
Later . . . 'liam
allenwc@home.com
William C Allen, BLS, EET
"It may be that your sole purpose in life is to serve as a warning to others"
At least I /have/ a purpose!
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Macintosh OS 9.1 front end C interface
@ 2001-04-04 18:52 Tom Lane <tgl@sss.pgh.pa.us>
parent: liam <allenwc@home.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2001-04-04 18:52 UTC (permalink / raw)
To: liam <allenwc@home.com>; +Cc: pgsql-interfaces
liam <allenwc@home.com> writes:
> Most of the changes involve replacing the standard Unix headers with
> their Mac counter parts. Some functions have to be written from
> scratch or ported from Unix, like strdup for example.
At least some of those functions already exist, see src/utils/ and
src/backend/port/.
> It is going to be a BIG job, which is why I was hoping someone else
> had done it already.
I believe 7.1 builds out-of-the-box on OS X ... you might want to
consider just how badly you really need this for OS 9.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-04-04 18:52 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-04 17:41 Macintosh OS 9.1 front end C interface liam <allenwc@home.com>
2001-04-04 18:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-04-04 18:31 ` liam <allenwc@home.com>
2001-04-04 18:52 ` Tom Lane <tgl@sss.pgh.pa.us>
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