Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: writing backend extensions using Visual Studio


  • From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
  • To: <dpage(at)vale-housing(dot)co(dot)uk>
  • Cc: <greg(dot)landrum(at)gmail(dot)com>, <pgsql-hackers-win32(at)postgresql(dot)org>
  • Subject: Re: writing backend extensions using Visual Studio
  • Date: Tue, 29 Mar 2005 05:33:53 -0600 (CST)
  • Message-id: <4931(dot)24(dot)211(dot)165(dot)134(dot)1112096033(dot)squirrel(at)www(dot)dunslane(dot)net>

Dave Page said:
>
>
>> -----Original Message-----
>> From: Greg Landrum [mailto:greg(dot)landrum(at)gmail(dot)com]
>> Sent: 28 March 2005 23:31
>> To: Dave Page; pgsql-hackers-win32(at)postgresql(dot)org
>> Subject: Re: [pgsql-hackers-win32] writing backend extensions
>> using Visual Studio
>>
>> On Mon, 28 Mar 2005 22:05:58 +0100, Dave Page
>> <dpage(at)vale-housing(dot)co(dot)uk> wrote:
>> >
>> > >
>> > > it seems that the development
>> > > files distributed with the win32 installer aren't
>> sufficient to the
>> > > task.
>> >
>> > They should be - what did we miss?
>>
>> Looking at a fresh installation, the libpostgres.a distributed with
>> pginstaller seems to match the one I built, but the header files
>> required for building backend apps are missing.  (These are the
>> "internal to Postgres" headers, to use the terminology of
>> postgres_ext.h)
>
> We install the following:
>
> $ ls c:/program\ files/postgresql/8.0/include
> ecpg_informix.h  libpq-fe.h          pgtypes_date.h
> pgtypes_timestamp.h
> ecpgerrno.h      pg_config.h         pgtypes_error.h     postgres_ext.h
> ecpglib.h        pg_config_manual.h  pgtypes_interval.h  sql3types.h
> ecpgtype.h       pg_config_os.h      pgtypes_numeric.h   sqlca.h
>
> Which is what is installed by PostgreSQL's build system. Do backend
> extensions need to be built in the source tree?
>

Don't you need the (fairly large) tree that is normally rooted at
include/postgresql/server? This will contain things like funcapi.h and
fmgr.h.
cheers

andrew





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group