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 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 - we do that w

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 Magnus Hagander
On Tue, Sep 28, 2010 at 09:26, Itagaki Takahiro wrote: > On Tue, Sep 28, 2010 at 3:53 PM, Tom Lane 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 t

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 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.

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 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 of uglifica

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

2010-09-27 Thread Tom Lane
Itagaki Takahiro writes: > On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas 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 mentioned, we don't need the marks in our build

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 wrote: > On Tue, Sep 28, 2010 at 12:12 PM, Robert Haas 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

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 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 didn't otherwis

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 wrote: > On Tue, Sep 28, 2010 at 9:51 AM, Robert Haas 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 confus

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 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 few times lately

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 wrote: > On Tue, Sep 28, 2010 at 5:13 AM, Euler Taveira de Oliveira > 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

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 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? Since we have P

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 ma

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 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 how can I solve the pr

[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 ser