From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Andrew Chernow <ac(at)esilo(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, Greg Sabino Mullane <greg(at)turnstep(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [PATCHES] libpq type system 0.9a |
Date: | 2008-04-09 00:08:26 |
Message-ID: | 200804090008.m3908Qp27530@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Andrew Chernow wrote:
> My idea was not a response to your hook idea. It was different
> altogether.
>
> My idea is trying to create one interface where some parts need to be
> enabled (nothing wrong with that design, this is a plugin-like model).
>
> Your idea creates two interfaces where one of them can hook into the
> other. These are two different concepts.
>
> the question is, are you asking for two different interfaces or are you
> just looking to minimize overhead. I thought it was the latter which is
> why I proposed a plugin-like model. It removes bloat as well as
> maintains a single interface. Nothing wrong with the design unless it
> doesn't meet your requirements.
The idea is that the hooks you need in libpq would be available always,
for your interface and for others. This would allow your library to use
native libpq on any >=8.4 platform. People who want to use your library
would have to link in your library and call your additional functions.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Chernow | 2008-04-09 00:09:28 | Re: [PATCHES] libpq type system 0.9a |
Previous Message | Bruce Momjian | 2008-04-09 00:06:11 | Re: [PATCHES] libpq type system 0.9a |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Chernow | 2008-04-09 00:09:28 | Re: [PATCHES] libpq type system 0.9a |
Previous Message | Bruce Momjian | 2008-04-09 00:06:11 | Re: [PATCHES] libpq type system 0.9a |