Re: [HACKERS] C vs. C++ contributions

2002-09-28 Thread Bruce Momjian
Marc Lavergne wrote: > That's an quite a bite to chew given my level of experience with > PostgreSQL internals! However, I will keep it in mind and whatever I do > will be fully abstracted (already is actually) so that it should just a > matter of snapping it into place when 7.4 forks. Realisti

Re: [HACKERS] C vs. C++ contributions

2002-08-29 Thread Mario Weilguni
> > The nice part is it has an varying number of arguments, and can > > used within "sort". Very useful sometimes. > > With our CASE, you create a column using the CASE, then ODER BY on that > column. Not exactly, you have to create a column for this, and it will be in the select list. Oracle do

Re: [HACKERS] C vs. C++ contributions

2002-08-29 Thread Bruce Momjian
Mario Weilguni wrote: > Yes this is completly different. Oracle decode works like this: > > decode(value, choice1, result1, choice 2, result2, .., > default_result) > > it works this way: case > when value=choice1 then result1 when value=choice2 then result2 > > else default_resu

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Mario Weilguni
> > feature of that type. But random misfeatures such as the join syntax or > > the decode() function are going to have a hard time getting accepted. > > But we have decode(): > > test=> \df decode > List of functions >Result data type | Schema | Nam

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Marc Lavergne
>> But we have decode(): It is a different decode function, more akin to "case when". >> Just to give you a fair warning: I'm not going to be in favor of adding any "Oracle compatibility" functionality that overlaps with existing and/or standardized functionality. I wouldn't even dream of

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Bruce Momjian
Peter Eisentraut wrote: > Marc Lavergne writes: > > > This covers a few different sub-projects so I'm breaking it down in > > order of how I'm going to attack it. > > Just to give you a fair warning: I'm not going to be in favor of adding > any "Oracle compatibility" functionality that overlaps

Re: [HACKERS] C vs. C++ contributions

2002-08-28 Thread Peter Eisentraut
Marc Lavergne writes: > This covers a few different sub-projects so I'm breaking it down in > order of how I'm going to attack it. Just to give you a fair warning: I'm not going to be in favor of adding any "Oracle compatibility" functionality that overlaps with existing and/or standardized fun

Re: [HACKERS] C vs. C++ contributions

2002-08-27 Thread Marc Lavergne
That's an quite a bite to chew given my level of experience with PostgreSQL internals! However, I will keep it in mind and whatever I do will be fully abstracted (already is actually) so that it should just a matter of snapping it into place when 7.4 forks. Realistically, I can't comment from

Re: [HACKERS] C vs. C++ contributions

2002-08-27 Thread Neil Conway
Marc Lavergne <[EMAIL PROTECTED]> writes: > PostgreSQL parse/bind/execute Layer: > > This would be mimicked since PostgreSQL doesn't support it > natively. What's stopping you from implementing native support for this? There will hopefully be an FE/BE protocol

Re: [HACKERS] C vs. C++ contributions

2002-08-27 Thread Marc Lavergne
This covers a few different sub-projects so I'm breaking it down in order of how I'm going to attack it. The TTC estimates are going to vary based on my bandwidth which, unfortunately, is pretty tight right now. However, there is relief on the horizon and I do have a vested interest in getti

Re: [HACKERS] C vs. C++ contributions

2002-08-27 Thread Bruce Momjian
Marc, wher did we leave this? Also, 7.3 will have prepared statements in the backend code, so that should make the porting job easier. --- Marc Lavergne wrote: > The code comes from a project in which I needed to import fr

Re: [HACKERS] C vs. C++ contributions

2002-07-23 Thread Marc Lavergne
The code comes from a project in which I needed to import from Oracle export files into PostgreSQL. I determined the export file format and created a parser class. Since the INSERT syntax in Oracle export files is based on a parse/bind/execute model, I created second module which implements a

Re: [HACKERS] C vs. C++ contributions

2002-07-23 Thread Bruce Momjian
Tom Lane wrote: > Marc Lavergne <[EMAIL PROTECTED]> writes: > > never any mention of C++ (libpq++ excepted). So, at a risk of stating > > the obvious (and I'm 99.99% sure I am), does backend code need to be > > submitted as C even if it's for an entirely NEW module? > > Backend code must be C;

Re: [HACKERS] C vs. C++ contributions

2002-07-22 Thread Tom Lane
Marc Lavergne <[EMAIL PROTECTED]> writes: > never any mention of C++ (libpq++ excepted). So, at a risk of stating > the obvious (and I'm 99.99% sure I am), does backend code need to be > submitted as C even if it's for an entirely NEW module? Backend code must be C; we do not want to deal with

[HACKERS] C vs. C++ contributions

2002-07-21 Thread Marc Lavergne
I am working on a rather extensive Oracle compatibility layer that I use with PostgreSQL. I am considering contributing the code back to the project but the problem is that the layer is currently implemented in C++. Simply looking throughout the sources and the dev FAQ, there's never any menti