Re: server-side extension in c++

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: server-side extension in c++
Дата
Msg-id 201006010319.o513JuE24672@momjian.us
обсуждение исходный текст
Ответ на Re: server-side extension in c++  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> >>> Well, I would have avoided this mine-trap except we have this 9.0
> >>> release note item:
> >>>    Allow use of <productname>C++</> functions in backend code (Kurt
> >>>    Harriman, Peter Eisentraut)
>
> > So should I just comment it out and then when someone gets serious we
> > can use it as a starting point for them?
>
> Sure.  While you're at it, tone down the release-note item.  It should
> read more like "Take some steps towards allowing use ...", because C++
> keywords in the header files surely were not the only stumbling block.

OK, done with attached, applied patch.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + None of us is going to be here forever. +
Index: doc/src/sgml/extend.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/extend.sgml,v
retrieving revision 1.41
diff -c -c -r1.41 extend.sgml
*** doc/src/sgml/extend.sgml    1 Jun 2010 02:54:37 -0000    1.41
--- doc/src/sgml/extend.sgml    1 Jun 2010 03:17:46 -0000
***************
*** 273,278 ****
--- 273,280 ----
    &xoper;
    &xindex;

+ <!-- Use this someday when C++ is easier to use. bjm 2010-05-31
+
    <sect1 id="extend-Cpp">
     <title>Using C++ for Extensibility</title>

***************
*** 318,322 ****
--- 320,325 ----
     </para>

    </sect1>
+ -->

   </chapter>
Index: doc/src/sgml/release-9.0.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/release-9.0.sgml,v
retrieving revision 2.22
diff -c -c -r2.22 release-9.0.sgml
*** doc/src/sgml/release-9.0.sgml    17 May 2010 17:46:13 -0000    2.22
--- doc/src/sgml/release-9.0.sgml    1 Jun 2010 03:17:50 -0000
***************
*** 2519,2532 ****

       <listitem>
        <para>
!        Allow use of <productname>C++</> functions in backend code (Kurt
         Harriman, Peter Eisentraut)
        </para>

        <para>
!        This removes keyword conflicts that previously made <productname>C++</>
!        usage difficult in backend code. <literal>extern "C" { }</> might still
!        be necessary.
        </para>
       </listitem>

--- 2519,2534 ----

       <listitem>
        <para>
!        Simplify use of <productname>C++</> functions in backend code (Kurt
         Harriman, Peter Eisentraut)
        </para>

        <para>
!        While this removes keyword conflicts that previously made
!        <productname>C++</> usage difficult in backend code, there are
!        still other complexities when using <productname>C++</> for backend
!        functions. <literal>extern "C" { }</> is still necessary in
!        some cases.
        </para>
       </listitem>


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: server-side extension in c++
Следующее
От: Greg Smith
Дата:
Сообщение: Re: INSERTing lots of data