Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-28 Thread Tom Lane
Itagaki Takahiro itagaki.takah...@gmail.com writes: On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas robertmh...@gmail.com wrote: Oh - I didn't realize this meant marking lots of things in contrib that didn't otherwise need to be marked.  Why do other people need this if we don't? As I

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-28 Thread Itagaki Takahiro
On Tue, Sep 28, 2010 at 3:53 PM, Tom Lane t...@sss.pgh.pa.us wrote: As I mentioned, we don't need the marks in our build environment at all. In that case, anybody who does need it should fix their build environment. I grow really weary of the idea that we should submit to arbitrary amounts

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-28 Thread Craig Ringer
On 28/09/10 11:09, Itagaki Takahiro wrote: On Tue, Sep 28, 2010 at 9:51 AM, Robert Haas robertmh...@gmail.com wrote: Since we have PGDLLEXPORT in 9.0, we can mark some of exported functions with it in tutorial codes and maybe contrib modules. If that (a) works and (b) reduces user confusion,

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-28 Thread Magnus Hagander
On Tue, Sep 28, 2010 at 09:26, Itagaki Takahiro itagaki.takah...@gmail.com wrote: On Tue, Sep 28, 2010 at 3:53 PM, Tom Lane t...@sss.pgh.pa.us wrote: As I mentioned, we don't need the marks in our build environment at all. In that case, anybody who does need it should fix their build

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-28 Thread Euler Taveira de Oliveira
Magnus Hagander escreveu: We might, however, want to add a specific section to the *documentation* about building extensions on Windows. +1. -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-28 Thread Itagaki Takahiro
On Tue, Sep 28, 2010 at 6:16 PM, Magnus Hagander mag...@hagander.net wrote: We're talking about the export all symbols thing, right? I *don't* think we want to recommend people to do that - it creates bloated DLL files, for no really good reason. Also, it's not just a matter of a msvc project

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Euler Taveira de Oliveira
Itagaki Takahiro escreveu: I had the same problems before, and I wrote some hacks for VC++. Isn't there such a code in core or am i missing something? Is it worth supporting the VC++ standalone projects? -- Euler Taveira de Oliveira http://www.timbira.com/ -- Sent via pgsql-hackers

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Itagaki Takahiro
On Tue, Sep 28, 2010 at 5:13 AM, Euler Taveira de Oliveira eu...@timbira.com wrote: Itagaki Takahiro escreveu: I had the same problems before, and I wrote some hacks for VC++. Isn't there such a code in core or am i missing something? Is it worth supporting the VC++ standalone projects?

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Robert Haas
On Mon, Sep 27, 2010 at 8:45 PM, Itagaki Takahiro itagaki.takah...@gmail.com wrote: On Tue, Sep 28, 2010 at 5:13 AM, Euler Taveira de Oliveira eu...@timbira.com wrote: Itagaki Takahiro escreveu: I had the same problems before, and I wrote some hacks for VC++. Isn't there such a code in core

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Itagaki Takahiro
On Tue, Sep 28, 2010 at 9:51 AM, Robert Haas robertmh...@gmail.com wrote: Since we have PGDLLEXPORT in 9.0, we can mark some of exported functions with it in tutorial codes and maybe contrib modules. If that (a) works and (b) reduces user confusion, +1 from me.  We've gotten this question a

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Robert Haas
On Mon, Sep 27, 2010 at 11:09 PM, Itagaki Takahiro itagaki.takah...@gmail.com wrote: On Tue, Sep 28, 2010 at 9:51 AM, Robert Haas robertmh...@gmail.com wrote: Since we have PGDLLEXPORT in 9.0, we can mark some of exported functions with it in tutorial codes and maybe contrib modules. If that

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Itagaki Takahiro
On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas robertmh...@gmail.com wrote: If we do so, many PGDLLEXPORT will be added:  *  17 in src/tutorial  * 507 in contrib for each exported PGFunction, _PG_init, and _PG_fini. Oh - I didn't realize this meant marking lots of things in contrib that

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-27 Thread Robert Haas
On Mon, Sep 27, 2010 at 11:26 PM, Itagaki Takahiro itagaki.takah...@gmail.com wrote: On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas robertmh...@gmail.com wrote: If we do so, many PGDLLEXPORT will be added:  *  17 in src/tutorial  * 507 in contrib for each exported PGFunction, _PG_init, and

[HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-25 Thread Esteban Zimanyi
Hello I have problems defining user-defined types and functions in PostgreSQL using a Visual C++ development environment. In order to look for the solution I took the complex.c and complex.source files coming with the PostgreSQL distribution (src/tutorial). When I run the examples there is a

Re: [HACKERS] Help with User-defined function in PostgreSQL with Visual C++

2010-09-25 Thread Itagaki Takahiro
On Sun, Sep 26, 2010 at 12:56 AM, Esteban Zimanyi estebanzima...@gmail.com wrote: When I run the examples there is a server crash. I used both Visual C++ 2008 and 2005 for building the dll. I also used both PostgreSQL versions 8.4 and 9.0. All versions produce the same problem. Do you know